Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Stop unnecessary js and css files from loading

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Stop unnecessary js and css files from loading

  • This topic has 2 replies, 3 voices, and was last updated 13 years, 6 months ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 19, 2011 at 8:38 pm #2534
    calithia
    Member

    I’m using eStore and eMember on my site and I’m working on the optimizing the load time and noticed that these plugins call a bunch of unnecessary files. Is there a way stop some from being loaded? For instance, if I disable the lightbox effect on images the lightbox.js file is still called.

    Do all of the below files really need to be loaded on every page of the site? Aren’t some of these only needed in the admin? What about at least combining these files?

    /wp-content/plugins/wp-eMember/css/eMember_style.css?…

    /wp-content/plugins/wp-cart-for-digital-products/wp_eStore_style.css

    /wp-content/plugins/wp-cart-for-digital-products/wp_eStore_custom_style.css

    /wp-content/plugins/wp-cart-for-digital-products/lib/jquery.cookie.js?…

    /wp-content/plugins/wp-cart-for-digital-products/lib/jquery.lightbox-0.5.min.js?…

    /wp-content/plugins/wp-eMember/js/jquery.pagination-2.0rc.js?…

    /wp-content/plugins/wp-eMember/js/jquery.confirm-1.3.js?…

    /wp-content/plugins/wp-eMember/js/jquery.hint.js?…

    /wp-content/plugins/wp-eMember/js/ajaxupload.js?…

    /wp-content/plugins/wp-eMember/js/jquery.tools.min.js?…

    /wp-content/plugins/wp-eMember/js/jquery.libs.js?…

    /wp-content/plugins/wp-cart-for-digital-products/lib/eStore_read_form.js

    January 20, 2011 at 4:52 am #28177
    amin007
    Participant

    These are not unnecessary. The files that are only needed in the admin are only loaded in the admin (there is a condition for that). When you use a caching plugin (example: W3 Total Cache) it will automatically combine all the CSS files and javascript files into one big file from this plugin and all the other plugins and load it for the entire site.

    If you want to manually do what a caching plugin does then you can combine all the javascript files then load that file. Look for the following lines in the code that loads the javascript libraries:

    wp_enqueue_script

    December 20, 2011 at 4:24 am #28178
    admin
    Keymaster

    If you are doing this for performance improvement then it is best to combine the script and css files then load them. Have a look at this post:

    https://support.tipsandtricks-hq.com/forums/topic/speed-suggestion

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ