|
Make sure that the <script> tag is in the <head> and that it doesn't specify async or defer so that it actually prevents the page from starting to render until after it finishes running.
Also make sure that the code in the script is set to run immediately and not to wait for the HTML to load.
|