延迟行为 (2/4)

您可以选择两种不同的方法来延迟 JavaScript:

  1. 仅延迟指定的脚本
  2. 延迟所有脚本

1. 仅延迟指定脚本

通过添加源URL(example.js)延迟特定的 JavaScript 文件,或者通过从该脚本添加唯一字符串延迟内联脚本。格式:每行一个

Delay specified JavaScript with Perfmatters
Delay specified JavaScript with Perfmatters

2. 延迟所有脚本

延迟所有脚本功能将尝试延迟所有 JavaScript,包括内联脚本。这是迄今为止最积极的选择。然后,如果需要,可以排除脚本。

被排除在延迟之外

通过添加源 URL(example.js)从延迟中排除特定的 JavaScript 文件,或者通过从脚本中添加唯一的字符串来排除内联脚本。格式:每行一个

Excluding JavaScript from delay
Excluding JavaScript from delay

Log In

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy

Add to Collection

No Collections

Here you'll find all collections you've created before.