【问题标题】:Google PageSpeed Issue谷歌 PageSpeed 问题
【发布时间】:2018-11-18 02:42:11
【问题描述】:

error I get:

Minify JavaScript
Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time.
Minify JavaScript for the following resources to reduce their size by 254B (22% reduction).

My file

我的 JavaScript 文件已缩小(如您在第二张图片中看到的),但缩小它时仍然出错! 可能出了什么问题?

【问题讨论】:

    标签: google-pagespeed


    【解决方案1】:

    只需简单地推迟或 aysnc 像这样的 javascript 文件

    <script src="demo_defer.js" defer></script>
    

    一切顺利。

    【讨论】:

      猜你喜欢
      • 2018-06-20
      • 1970-01-01
      • 1970-01-01
      • 2017-02-15
      • 1970-01-01
      • 2019-01-26
      • 2019-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多