Site suddenly taking over 30 seconds to load

I am using WordPress Multisite which I moved to WPEngine a couple of months ago. Everything has been fine and my sites have been extremely fast until a couple of days ago when all of a sudden some of the sites were taking over 30 seconds to load. I did not make any changes to anything on the site, WPEngine or Cloudflare.

WPEngine believes the problem is with Cloudflare. At first they thought it had to do with Rocket Loader but they don’t know what’s going on. I turned off Rocket Loader on the three sites below but that did not seem to make a difference. Only turning off the clouds makes a difference.

If I turn off the clouds, the sites run at normal speed but as soon as I turn on even one cloud, it becomes unusable. Strangely, three of the sites use the same custom theme, plug-ins and Cloudflare. One of those sites is still working fine while the other two are not.

https://longislandmotorcycleaccidentattorney.com is the site that does not have problems
https://newyorkmotorcycleaccidentlawyer.com had problems but the clouds are currently turned off
https://newyorkseriousinjuryattorneys.com currently has one cloud turned on and is extremely slow

This is what WPEngine said about https://newyorkmotorcycleaccidentlawyer.com when the clouds were on:

(12:18:01) Colton B.: I believe we’re seeing a script called rocket-loader that may be causing you issues with Cloudflare on, here… Uncaught ReferenceError: soundManager is not defined at :2:9 at t.activateScript (rocket-loader.min.js:1) at rocket-loader.min.js:1 at t.run (rocket-loader.min.js:1) at rocket-loader.min.js:1 at HTMLScriptElement. (rocket-loader.min.js:1) (anonymous) @ VM126:2 t.activateScript @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) s @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) s @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) s @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) s @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) t.runOnLoad @ rocket-loader.min.js:1 w @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 autoptimize_1d026535f000fe858534c94e7a24bddf.js:73 JQMIGRATE: Migrate is installed, version 1.4.1 addthis_widget.js?ver=4.9.10:2 GET https://www.linkedin.com/countserv/count/share?url=https%3A%2F%2Fnewyorkmotorcycleaccidentlawyer.com%2F&callback=atajsshctcboNoOA net::ERR_ABORTED 404 e.exports @ addthis_widget.js?ver=4.9.10:2 ajs @ layers.b7315dd8028c0248db40.js:1 e.default @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 e.default @ layers.b7315dd8028c0248db40.js:1 getShareCounts @ layers.b7315dd8028c0248db40.js:1 finalize @ layers.b7315dd8028c0248db40.js:1 render_logic @ layers.b7315dd8028c0248db40.js:1 render @ layers.b7315dd8028c0248db40.js:1 create @ layers.b7315dd8028c0248db40.js:1 createWidget @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 f @ addthis_widget.js?ver=4.9.10:2 (anonymous) @ addthis_widget.js?ver=4.9.10:2 setTimeout (async) l @ addthis_widget.js?ver=4.9.10:2 fireCustomEvent @ layers.b7315dd8028c0248db40.js:1 trigger @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 _createLayers @ layers.b7315dd8028c0248db40.js:1 _init @ layers.b7315dd8028c0248db40.js:1 t @ layers.b7315dd8028c0248db40.js:1 t @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ addthis_widget.js?ver=4.9.10:2 (anonymous) @ layers.b7315dd8028c0248db40.js:1 M.getPreferredServices @ addthis_widget.js?ver=4.9.10:2 (anonymous) @ layers.b7315dd8028c0248db40.js:1 u @ addthis_widget.js?ver=4.9.10:2 t.exports @ layers.b7315dd8028c0248db40.js:1 (anonymous) @ addthis_widget.js?ver=4.9.10:2 window.atwpjp @ addthis_widget.js?ver=4.9.10:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 addthis_widget.js?ver=4.9.10:2 GET https://www.linkedin.com/countserv/count/share?url=http%3A%2F%2Fnewyorkmotorcycleaccidentlawyer.com%2F&callback=atajsshctcbmQUZD net::ERR_ABORTED 404

John W: Got it, the server is in a healthy state at the moment so there’s no slow-downs occurring due to an overuse of resources. So from here we would likely need to make optimization recommendations surrounding the content. As for the slow-downs with rocket-loader, I can’t explain that as we don’t insight in to that service, but I’m noting that these errors were present in console when rocket-loader was enabled; Uncaught ReferenceError: soundManager is not defined at :2:9 at t.activateScript (rocket-loader.min.js:1) at rocket-loader.min.js:1 at t.run (rocket-loader.min.js:1) at rocket-loader.min.js:1 at HTMLScriptElement. (rocket-loader.min.js:1) (anonymous) @ VM126:2 t.activateScript @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) s @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 t.run @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 (anonymous) @ rocket-loader.min.js:1 load (async) s @ rocket-loader.min.js:1 (anonymous) @ rocket- addthis_widget.js?ver=4.9.10:1 (anonymous) @ layers.b7315dd8028c0248db40.js:1 addthis_widget.js?ver=4.9.10:2 GET https://www.linkedin.com/countserv/count/share?url=http%3A%2F%2Fnewyorkmotorcycleaccidentlawyer.com%2F&callback=atajsshctcbmQUZD net::ERR_ABORTED 404
John W: Full output of the console error in attached txt file
John W: Agent uploaded: console.txt URL: https://v2uploads.zopim.io/M/E/o/MEoe9WgzX2LAEe26TCMgiupyC3npVYuU/97a4cfbf96ab4ec0fa9c98661fd7f0d7ab88b319.txt Type: text/plain Size: 3339

(12:54:12) John W: The use of rocket-loader may be increasing in response time due to the errors, in particular the aborted 404. Ultimately I do not know what the errors precisely mean, but they’re still present on newyorkmotorcycleaccidentlawyer.com with rocket-loader turned off The Uncaught ReferenceError errors are generally a result of the necessary javascript library failing to load. If you see the error jQuery is Undefined this means that the JavaScript files containing the jQuery library failed to load. This is usually caused by mixed content preventing the JavaScript files to load.
(12:54:40) John W: Load on the server remains incredibly low so I presently cannot account for the times outs when Cloudflare CDN is enabled.
(12:55:23) John W: Via my network tab, I am observing the request hanging on resource https://s7.addthis.com/static/213.793841ed0bc88473be13.js

John W: I’m afraid I am unable to account for it either with the information on the server. Behind Cloudflare I’m seeing TTFB reporting as 30 seconds - but actively monitoring the processes on the server for the incoming requests, the processes are completing in well under this time frame. The request itself however doesn’t reach our end until well after it’s been submitted, and I’ve tested this via cURL to confirm; This is my curl request with a date before it to give us the time; $ date && curl -sIL 1-800-HURT-911® New York's Personal Injury Lawyers For Serious Injuries Wed Jun 12 01:04:02 UTC 2019 HTTP/2 200 date: Wed, 12 Jun 2019 01:04:33 GMT And this is the entry from the access logs of this request finally reaching the server; $ grep test60 /var/log/nginx/lawfirm911.apachestyle.log 104.196.234.50 newyorkseriousinjuryattorneys.com - [12/Jun/2019:01:04:33 +0000] “HEAD /?test60 HTTP/1.0” 200 0 “-” “curl/7.58.0”
John W: So there’s a full 31 seconds between when I send the request, and when it actually reached the servewr.

Hi @phil4,

Just a thought to help in your investigation: even if you did not make any changes, things may have changed.

WP has settings to allow for the auto update of itself (core) when there’s a major new release, as well as when there are security updates. Also, IIRC there’s also an auto update for plugins.

So I’d check if there is any plugin that’s been updated on the sites that are now broken, but not on the site that is working.

The WP core wasn’t updated. The only plugin which was updated was CleanTalk which WPEngine at one point thought could be causing the problem so CleanTalk sent me a previous version which I installed. That did not help.

This topic was automatically closed after 30 days. New replies are no longer allowed.