Jan-Lukas Else

Thoughts of an IT expert

Published on in 💬 Micro
Short link: https://b.jlel.se/s/37b
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

I finally took the time to fix the reading feature on my blog (the “Read to me, please!” button below the title). Initially, I used the property textContent to get the text content from the DOM element, but I figured out that it’s better to use innerText for this purpose. Read this article on the differences.

I also made the script to not block the rendering anymore by removing it from the critical request chain.


Jan-Lukas Else
Interactions & Comments