On this page

This rule is triggered when PageSpeed Insights detects that you are using a synchronous version of the script instead of an asynchronous version.

Overview

Using asynchronous scripts means that the system can render your web page more quickly, rather than forcing users to wait for the script to complete downloading before rendering the web page. Asynchronous version of the script can be downloaded in the background.

Although most of the original scripts are synchronous, newer versions of scripts can be loaded asynchronously.

Recommendations

请确保您使用的是异步版脚本。以下热门脚本均支持加载异步脚本:

  • BuySellAds (s3.buysellads.com/ac/bsa.js):Related blog post - 默认情况下为异步脚本
  • ChartBeat (static.chartbeat.com/js/chartbeat.js):Related documents相关博文 - 默认情况下为异步脚本
  • Clicky (static.getclicky.com/js):相关博文
  • Disqus (disqus.com/count.js, disqus.com/embed.js):Related documents相关博文 - 默认情况下为异步脚本
  • Facebook (connect.facebook.net/.../all.js):相关文档相关博文-Asynchronous script by default
  • Google AdSense (pagead2.googlesyndication.com/pagead/show_ads.js) :相关文档Related blog post
  • Google Analytics (Analytics) (google-analytics.com/ga.js):相关文档Related blog post - 默认情况下为异步脚本
  • Google DFP广告管理系统GPT (www.googletagservices.com/tag/js/gpt.js):相关文档
  • Google + (apis.google.com/js/plusone.js):相关文档相关博文
  • New Relic (D7p9czrvs14ne. cloudfront.net/11/eum/rum.js):相关文档 - 默认情况下为异步脚本
  • Pinterest (assets.pinterest.com/js/pinit.js):相关文档
  • Shareaholic:相关文档 - 默认情况下为异步脚本
  • ShareThis (w.sharethis.com/button/buttons.js):相关文档
  • ScorecardResearch/Comscore (b.scorecardresearch.com/beacon.js):Related documents-Asynchronous script by default
  • StumbleUpon (platform.stumbleupon.com/.../widgets.js)
  • Quantcast (quantserve.com/quant.js):Related documents - 默认情况下为异步脚本
  • Twitter (platform.twitter.com/widgets.js):Related documents-Asynchronous script by default
  • Tynt (cdn.tynt.com/tc.js)
  • Yandex (mc.yandex.ru/metrika/watch.js)
AttentionWe will try our best to update the above list in time. However, if you have specific questions about third-party scripts, or if you do not find an asynchronous version of scripts here, we recommend that you contact the provider directly.

对于Remove JavaScript that blocks renderingWe also provide more information about the reasons for speeding up the rendering of web pages.

Except as other written, the content of this page is licensed under theCreative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see ourSite Policies.