Title: Plugin Slows Down Website (Confirmed)
Last modified: January 29, 2020

---

# Plugin Slows Down Website (Confirmed)

 *  Resolved [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-slows-down-website-confirmed/)
 * Hi there,
 * Great plugin! Unfortunately, it injects bloatware that slows down our website
   loading speed. Plugin has too much “fat.” Others in this forum have expressed
   the same concern.
 * **The Issue:**
 * (1) EC loads JS and CSS files on all of our website pages. Why? It should only
   load these files on pages that use the calendar functions. For example, EC loads
   the following files on all pages:
 * /wp-content/plugins/the-events-calendar/common/src/resources/css/tooltip.min.
   css
 * /wp-content/plugins/the-events-calendar/src/resources/css/admin-menu.min.css
 * (2) Customization is great and so are the codes provided by Modern Tribe. Unfortunately,
   EC’s architecture has forced us to develop and insert numerous CSS styling changes
   to our website in order to get a decent display.
 * (3) The plugin has too many “hooks” (back-end website queries).
 * **The Fix:**
 * Our website loading speed dropped dramatically after performing the following:
 * (1) We disabled all unnecessary JS and CSS codes injected by EC (per page basis)
   using the plugin, [Perfmatters](https://perfmatters.io). Other similar (free)
   plugins are out there that can do the same.
 * (2) We disabled the REST API (WP-JSON) code injected by EC using the following
   solution:
 * [https://theeventscalendar.com/support/forums/topic/how-disable-wp-json-of-tribe-events/](https://theeventscalendar.com/support/forums/topic/how-disable-wp-json-of-tribe-events/)
 * (3) We added the following code to our WP-CONFIG.PHP file: (NOTE: You will need
   to customize info below to suit your website)
 *     ```
       define('WP_HTTP_BLOCK_EXTERNAL', true);
       define('WP_ACCESSIBLE_HOSTS', '*.wordpress.org, *.theme-fusion.com, theme-fusion.com, *.envato.com, wp-rocket.me, *.ithemes.com, *.googleapis.com, *.gstatic.com, *.google-analytics.com, <strong>*.yourwebsite.com</strong>, *.cloudflare.com, *.google.com, *.gtranslate.io, *.paypal.com, *.sucuri.net, *.siteground.com, *.sgcpanel.com, theeventscalendar.com');
       ```
   
 * (4) To slow down the number of plugin update queries, etc. we added the following
   PHP snippet to our website using the plugin, [Code Snippets](https://wordpress.org/plugins/code-snippets/):(
   Note: Adding this code will block noted plugin update notices. However, with 
   Code Snippets, we can deactivate this code, update EC, then reactivate the snippet
   it to re-block all active EC queries).
 *     ```
       // Remove Update Notice for Forked Plugins
       function remove_update_notifications( $value ) {
   
           if ( isset( $value ) && is_object( $value ) ) {
               unset( $value->response[ 'the-events-calendar/the-events-calendar.php' ] );
       		unset( $value->response[ 'events-calendar-pro/events-calendar-pro.php' ] );
           }
   
           return $value;
       }
       add_filter( 'site_transient_update_plugins', 'remove_update_notifications' );
       ```
   
 * After performing the above, our website loading speed dropped between .4 to 1.2
   seconds!
 * **Recommendations:**
 * (1) Please revisit your plugin code to make it more efficient. Lines of code 
   are continuously added to the plugin. Merging and minifying your files should
   help.
 * (2) Make EC Pro a stand-alone plugin. Currently, it depends on EC, which is understandable,
   but it’s a pain in the arse having to manage two plugins at the same time. In
   short, integrate EC’s code into EC Pro.
 * (3) Please update your KB to provide an article (or topic) dedicated on making
   EC and EC Pro run efficiently on users’ website(s). Ergo, one reason why we’re
   sharing above info.
 * Above has been tested many times. No issues.
 * Hope this helps everyone out there.
 * Cheers!

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

 *  [rgbjoy](https://wordpress.org/support/users/rgbjoy/)
 * (@rgbjoy)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-slows-down-website-confirmed/#post-12377864)
 * Just upgraded one of my clients site to 5.0 and it made the side EXTREMELY slow.
 *  Thread Starter [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-slows-down-website-confirmed/#post-12377994)
 * Amendment to original statement:
 * After applying above fixes, our website loading speed improved (i.e., loading
   time decreased)
 * Give it a spin.
 * Cheers!
 *  [baydream](https://wordpress.org/support/users/baydream/)
 * (@baydream)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-slows-down-website-confirmed/#post-12381197)
 * I too have had these issues with speed once the free version of the plugin is
   installed, even before adding any events. As soon as its disabled the site speeds
   up nd becomes usable again.
 *  [jimh275](https://wordpress.org/support/users/jimh275/)
 * (@jimh275)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-slows-down-website-confirmed/#post-12383440)
 * I’ve put the free version on one site. I’ve never purchased and I’m using competitors
   products on all new development do to this issue. Also, it irritates me that 
   the spacing has never been fixed in the address.php for single venue display.
   Someone else brought that display issue up over two years ago.
    -  This reply was modified 6 years, 4 months ago by [jimh275](https://wordpress.org/support/users/jimh275/).

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

The topic ‘Plugin Slows Down Website (Confirmed)’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [bloatware](https://wordpress.org/support/topic-tag/bloatware/)
 * [fat](https://wordpress.org/support/topic-tag/fat/)

 * 4 replies
 * 4 participants
 * Last reply from: [jimh275](https://wordpress.org/support/users/jimh275/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-slows-down-website-confirmed/#post-12383440)
 * Status: resolved