• Hello,

    At gtmetrix.com I get the recommendation:

    Inline small JavaScript

    The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering.

    https://…/ should inline the following small resources:

    /wp-content/plugins/c4d-plugin-manager/assets/default.js
    /wp-content/uploads/hummingbird-assets/1c9c8976470f8df471cb6d05d955d10f.js
    /wp-content/uploads/hummingbird-assets/712a251a7c7a48e11ba58fa61bdd29fd.js

    Can anyone tell me what to do en how?

    I hope so!

    Greetings

Viewing 1 replies (of 1 total)
  • Phil

    (@owendevelopment)

    What GTMetrix means is to take the javascript code out of those files and adding it into the body of the page (inline), rather than running at the end of the page. This allows the functionality needed at the top of the page to run without having to load the rest of the page first, before loading the javascript code at the very end where most javascript is loaded.

    However, these 2 plugins would need the code from the files specified to be taken from the files and added inline, so it may or may not be worth it or easy for a beginner to do. If you do that though, you may need to repeat the process every time you update each of the plugins too – unless the plugins have hooks that allow you to deregsiter their loading of those files in place of your own inline additions.

Viewing 1 replies (of 1 total)

The topic ‘Inline small JavaScript’ is closed to new replies.