Viewing 7 replies - 1 through 7 (of 7 total)
  • Hiya,

    You can limit the number of JS files loaded by changing the setting at Events > Settings > Performance Optimization > JavaScript Files > Limit JS file loading?

    Thanks,
    Phil

    Thread Starter b a

    (@mpa4hu)

    I load my pages with ajax. it means when I load my website once, then going to pages does not load wp_head and wp_footer. (and thus js files)

    So I question is if I can they are all nessasary and if I can deregister some of them?

    going to pages does not load wp_head

    EM requires the wp_head hook to run in order to do some of it’s work, so disabling that will cause issues beyond any JS file loading.

    To answer your question directly, yes they are all required. However, when hooking into wp_head, EM decides which JS files are required for that individual page and only loads those that are necessary. Leaving wp_head out will prevent EM from doing so. You’ll have to recreate that yourself, or load all the JS at once for every page.

    Thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Check this page out – http://wp-events-plugin.com/documentation/optimization-recommendations/

    Try the Use Google Libraries plugin, which loads one minified file.

    Thread Starter b a

    (@mpa4hu)

    philipjon, I can’t include wp_head, then It looses all the point I’m loading my pages with ajax. I’ll try to recreate that in future.

    Marcus, I have read that in the first place.
    The last will do the job for know I guess.

    in fact my theme is loading http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js?ver=1.2

    but it is not enought for some reason, mini calendar (widget) is not working properly.

    Thanks everyone for support.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    not sure if this will help you but maybe you can try to check this link – http://w4dev.com/wp/wp_ajax/

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    you’ll need to fix your theme, because that’ll cause more and more problems for you as WP updates increase the jQuery versions, it’s unfortunately very common and I wrote about this

    http://msyk.es/blog/prevent-jquery-wordpress-theme/

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

The topic ‘Plugin loads whole jQuery UI library’ is closed to new replies.