Loading scripts even if they are not used on the page
-
Recently checking the site speed, with Ecwid installed, the Google PageSpeed Insights warns about loading unused Javascript. Indeed, I can see three Ecwid files (cloudfront.net), as well as one (minified) PayPal file (paypalobjects.com), probably pulled by some Ecwid command, as I use PayPal as a payment method on the Ecwid store.
Apparently, all the site pages load these scripts, even though they (supposedly) do not include any Ecwid element.
Performance, i.e. site speed appears significantly reduced for this reason, especially if I check it for mobile, which apparently assumes a 1.5 Mb/s connection. For desktops (10 MB/s), it is less critical, although this is still the first warning that is displayed.
So, my question is, how do we solve this?
Thanks.
- The topic ‘Loading scripts even if they are not used on the page’ is closed to new replies.