Skip to content

Instantly share code, notes, and snippets.

@nitishn
Created March 9, 2017 21:57
Show Gist options
  • Save nitishn/e1dc54ec48cb226704829f5c2f3e2a9e to your computer and use it in GitHub Desktop.
Save nitishn/e1dc54ec48cb226704829f5c2f3e2a9e to your computer and use it in GitHub Desktop.
// Tribe injects a lot of their JavaScript files into the DOM regardless of them being used or not. Here are some handles to remove them.
wp_dequeue_script( 'tribe-events-pro-geoloc' );
wp_dequeue_script( 'tribe-events-list' );
wp_dequeue_script( 'tribe-events-pro' ); // relies on tribe-events-calendar-script
wp_dequeue_script( 'tribe-events-calendar-script' ); // relies on placeholder, resize, datepicker
wp_dequeue_script( 'tribe-events-bar' ); // relies on placeholder, resize, datepicker
wp_dequeue_script( 'tribe-events-bootstrap-datepicker' );
wp_dequeue_script( 'tribe-placeholder' );
wp_dequeue_script( 'tribe-events-jquery-resize' );
wp_dequeue_script( 'tribe-events-datepicker' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment