• Resolved Squazz

    (@squazz)


    I have just run a couple of speed tests om my site, and it seems that some JS files for NextGen Gallery are fetched even when they aren’t needed.

    We are talking about 5 requests with a combined weight at about 12.8Kb:
    photocrati_nextgen/modules/ajax/static/ajax.js
    photocrati_nextgen/modules/ajax/static/persist.js
    photocrati_nextgen/modules/ajax/static/store.js
    photocrati_nextgen/modules/ajax/static/ngg_store.js
    photocrati_nextgen/modules/lightbox/static/lightbox_context.js

    Example page with the problem: https://www.musalaha.org/about-us/who-we-are/

    Sidenote: Can it be true that some of JS is not minimized?

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @squazz – We are addressing script loading in our next (major) release … these results will not likely be relevant after that update.

    Thanks!

    – Cais.

    Thread Starter Squazz

    (@squazz)

    Thanks! 😀 I will be looking forward to that 🙂

    Even though it’s not a lot of data, it’s still 5 HTTP requests 😛

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – Watch for a beta announcement in the next week or two … we’d like to get some more eyes on it if you are interested.

    Thanks!

    – Cais.

    Thread Starter Squazz

    (@squazz)

    Will do 🙂

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – Another option to consider is the NextGEN Gallery Optimizer plugin by Mark Jeldi … one of its main features is based on this premise as well.

    – Cais.

    Thread Starter Squazz

    (@squazz)

    that would solve my problem, but for you as a developer it has to be a letdown that it is needed for other developers to develop plugins that fixes your sloppyness 😉

    I will be loooking forward to the point where your plugin is optmized with out 3. party plugins.

    Plugin Contributor photocrati

    (@photocrati)

    @squazz – You are more than welcome to wait for our implementation … I just suggested this other quality plugin if you are too impatient to do so.

    – Cais.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Loading JS when not needed’ is closed to new replies.