Published on in π¬ Micro
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.