External Script from Product Site Causing High Load on cPanel Shared Hosting
Hi everyone,
I'm hosting a client site in a cPanel-based shared hosting environment. We recently embedded an external JavaScript snippet provided by a third-party service (their own script) to showcase dynamic product galleries.
Since adding the script, we’ve noticed a spike in resource usage and occasional slowdowns in the cPanel dashboard and on the front end. There are no major PHP errors in the logs, but performance is noticeably affected.
Has anyone dealt with external scripts causing performance hits like this on shared cPanel hosting? Would offloading it through Cloudflare or loading via iframe help in such cases? Any suggestions on how to mitigate this?
Appreciate any advice. Thanks!
-
Try watching the access_log (`tail` it if you have shell access) to see what happens when one of the pages with the script is loaded.
Is the script actually hosted on your server or on a third party server?
Including third party Javascript shouldn't really have an effect on the server - as it all runs on the client's web browser. However, it is is then configured to load in all the product gallery whenever the script is loaded (or access/log access to a database), then that could be causing the issue: the logs should reveal more (i.e. about what pages are being accessed to cause the load).
0
Please sign in to leave a comment.
Comments
1 comment