Jump to content

Unused Facebook javascript.. what's the deal?

Recommended Posts

Site URL: https://www.ome.design

Hello all. 

I've seen a few threads regarding this sort of subject already, and that often the conclusion is that there's nought to be done regarding the slow loading times related to 'unused javascript' on SS sites. 

Just as a preface, I'm a noob when it comes to coding so forgive my ignorance. 

Now, when assessing my site's speed on PageInsights (and various other tools), unused javascript files are cited as my main issue. Diving into this deeper, I see there are a bunch of facebook javascript files that seem to be slowing down my website???

Now, I have taken away my FB pixel.. and besides that I can't really imagine what's happening to cause this. Is it because I've social sharing icons and links to FB? Do FB links somehow insert their own javascript that could slow my website? (again, noob)

These are the links provided by Google when referencing the unused java files:

https://www.facebook.com/rsrc.php/v3/yR/r/zhfi1Uz36LI.js?_nc_x=Ij3Wp8lg5Kzhttps://www.facebook.com/rsrc.php/v3i7244/yK/l/en_GB/VptwldEJoUK.js?_nc_x=Ij3Wp8lg5Kz

https://connect.facebook.net/en_GB/sdk/xfbml.customerchat.js

https://www.facebook.com/rsrc.php/v3/y8/r/iCh0DOEOa3B.js?_nc_x=Ij3Wp8lg5Kz

https://www.facebook.com/rsrc.php/v3/yp/r/xkDDtbnRaGa.js?_nc_x=Ij3Wp8lg5Kz

https://www.facebook.com/rsrc.php/v3/ya/r/qAy9zK9-1J6.js?_nc_x=Ij3Wp8lg5Kz

https://www.facebook.com/rsrc.php/v3iyOI4/yT/l/en_GB/UEpn9DfESuo.js?_nc_x=Ij3Wp8lg5Kz

https://www.facebook.com/rsrc.php/v3iEpO4/ym/l/en_US/9JZFuMYprNT.js?_nc_x=Ij3Wp8lg5Kz

https://www.facebook.com/rsrc.php/v3iRBQ4/y9/l/en_GB/jUUf_meG9yB.js?_nc_x=Ij3Wp8lg5Kz

 

Any help would be most appreciated. 

Link to comment

I don't have any solutions.

I'm not surprised that there may be unused Javascript files being loaded. SS is a general purpose web site editing tool. So although you may not use a particular feature SS may load up some files that others using a feature would need.

In a perfect world SS would only load what is needed for your site of course.

If you are pretty sure SS shouldn't be loading up certain files when you aren't using a feature then I suggest contacting customer support with your observations. I think SS is interested in reducing load times. If enough people report a similar issue some action may be taken.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
12 hours ago, JoeRees said:

I see there are a bunch of facebook javascript files that seem to be slowing down my website???

I don't see these being loaded for your site. I see the standard Squarespace scripts and the Shopify Buy Button script.

If you are seeing Facebook scripts, try your tests again in another browser or in private/incognito mode where extensions are disabled. If they persist, temporarily remove all code from your site and test it again. This will confirm whether your code is to blame. If the issue remains after all the code has been removed, contact Squarespace Customer Care.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.