SEO: Resolve JavaScript Page Load Issues

SEO: Resolve JavaScript Page Load Issues

If your SEO audit returns this issue: ‘Resolve JavaScript Page Load Issues’ then it looks like there are JavaScript and/or CSS resources preventing your site from loading its top content.

This means your site needs to load these external resources before your visitors can see your actual content.

In practice, this causes visitors to miss important features or even leave your site, increasing your bounce rate.

Plus, this may cause search engine crawlers/bots and SEO tools to have difficulty properly reading your site’s content.

To fix this, place the JavaScript files after all of your content. The <script> tag can be placed in the <head> section of your HTML, in the <body> section, or after the </body> close tag, depending on when you want the JavaScript to load.

For stylesheet files, you may consider moving the relevant parts into inline CSS. However, you should not use inline CSS unless you have to. Codeacademy gives some good advice on when to use and when not to use inline styles.