WordPress.org

Support

Support » Plugins and Hacks » WP Photo Album Plus » [Resolved] How to prevent loading WPPA ressources on all the pages ?

[Resolved] How to prevent loading WPPA ressources on all the pages ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • My opinion about this is as follows:

    The css and js files are in total approx 60 kb, and that is less than an average photo on a typical site running wppa+.

    If 60 kb is a problem for you, you should have no fullsize photos on your site anyway.

    The chance is big that you have a wppa+ widget active.

    The files are cached in the browser so the load is only once until a delete temp internet files happens.

    The issue is not the css and js files size but the time to build the page (more than 500+ additional get object requests) then download it / interpret it by the client browser.

    This is a concern for pages and posts without gallery; to have a time penalty (on both server and client side) on more than 3.000 pages for only two of them with gallery.

    How can i prevent WPPA ressources (js and css)

    This was your question though?

    more than 500+ additional get object requests

    please supply more info / evidence of this

    My question was badly exposed (i’m not fluent in english, sorry). My concern is to have this pluging using no ressource on any page or post without gallery.

    As i’m using APC object caching, i have a way to dump number of cache access during page construction in the page’s footer :

    global $wp_object_cache;
    foreach ( $wp_object_cache->stats as $stat => $n ) {
       echo "$stat: $n ";
    }

    On my web site, with your pluging running i got these :

    Cache get: 4737 delete: 1 add: 1

    and around 670 ms to build the page

    With your plugin deactivated i got these :

    Cache get: 3962 delete: 0 add: 0

    and around 600 ms to build the page

    => 775 more get object with your plugin running and 10% more time. NB: I have a total of 45 plugins, only this one is consuming so many get (16% of all the gets)

    wppa+ is a large / extensive / heavy plugin with a myriad of possibilities. If 70 ms is a problem and you use only a few images try an other.

    thanks for your help.

    i’ve followed your recommendation with success.

    I have digged into this and i can promise you a substantial performance improvement during initialisation in version 4.9.0

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] How to prevent loading WPPA ressources on all the pages ?’ is closed to new replies.
Skip to toolbar