Script as blocking element and dynamic script loading using document.write
We all know that script is blocking element, meaning no content will be rendered untill script block is parsed and executed or downloaded then parsed and then executed in case of externale script.
And we were told endless times that the best practice is to load scripts at the end of web page. It’s true.
We also have document.ready events thanks to numerous javascript frameworks that gives us opportunity to perform most of our JS actions when document is ready to be manipulated. But there are cases when you do need JS blocking features.
Read more…



Recent Comments