• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Async causing "Some files on the server to be missing or incorrect"

Explorer ,
May 19, 2017 May 19, 2017

Copy link to clipboard

Copied

I'm trying to optimize the page load time of my site via Google's Page Insight tool.

https://developers.google.com/speed/pagespeed/insights/


Their main suggestion is to remove render-blocking scripts (scripts that require download and being run before page load):

https://developers.google.com/speed/docs/insights/BlockingJS

The suggestion to remedy the render-blocking scripts is to make the scripts asynchronous. However, when I add the attribute "async" to the <script> tags which are being called out (external ones for mailing lists and if someone leaves the page), then the page loads with "Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author."


Why is adding async to custom added scripts generating this Muse page error?

Views

226

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , May 19, 2017 May 19, 2017

I ended up using <script defer> instead of <script async>. That worked for me.

Votes

Translate

Translate
Explorer ,
May 19, 2017 May 19, 2017

Copy link to clipboard

Copied

LATEST

I ended up using <script defer> instead of <script async>. That worked for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines