Extensions

Search Extensions

Dequeue CSS Styles and JavaScript Files

CSS and Javascript are perhaps the largest culprit when it comes to conflicts between our plugins and themes or even other installed plugins. This is a natural by-product when installing plugins from multiple vendors who are all adding their own code to the same website.

We developed this extension to help you reduce those conflicts by adding a new section called Dequeued Assets to the Events > Settings screen. Dequeue is just a fancy way of saying “remove” so that you have the ability to selectively remove the files that might be conflicting with your theme or another installed plugin.

An example of the dequeued assets settings area.

An example of the Dequeued Assets settings area.

Once the extension is activated it will begin building a list of assets that can be dequeued. In order for an asset to be added to this list, you should navigate to the page that loads it. After you have visited this page once, it will become available in the list.

Simply tick the box next to any asset you want dequeued, and hit Save Changes.

Important Note: This extension only dequeues assets added with the tribe_asset() function. Any asset enqueued using a different method will not appear on the list. tribe_asset() is new, and some legacy assets do not yet enqueue themselves using it. Please bear with us as we gradually convert legacy assets to the new function over the coming months.

Changelog

  • Version 1.0.0 – Initial release
  • Version 1.0.1
    • Fix – An error “Cannot redeclare class” that happened when multiple extensions were active.
    • Tweak – Moved View_Helper to the Extension namespace.