Support » Requests and Feedback » Defer JavaScript

  • Can you make WordPress defer more of the JavaScript that loads to speed up our sites and give us an option to defer JavaScript being loaded somehow? A few of my sites are quite slow. I know deleting plugins is probably the easiest method but I need all the plugins I’m using so far.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    The plugins should only call the js on the pages that need it, which isn’t something we can control.

    However you can use minify plugins to force it, if you want.

    No… Minify JS and using Gzip that is one thing. And Defer loading is other.

    There are no any parameter that able to enqeue script with defer or async parameters.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Actually, PavelS, some of the minification plugins have settings to defer JS loading 🙂

    Thanks. I think that enqueue script function should be available to control that parameters. It so important as attaching in footer.

    Since your post is relevant so I thought I will leave a link to another discussion, wherein I have put in an update you may find useful.
    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Defer JavaScript’ is closed to new replies.