Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey Guys,
How do you stop Facebook JS files from loading? I've tried:
But despite doing all of the above, we still have multiple Facebook files loading (one is huge):
If JS isn't being loaded from theme files, where on earth do they load from?
Any help would be much appreciated.
Cheers
Ben
Solved! Go to the solution
This is an accepted solution.
Honestly Im not sure, I don't think it's loaded by default. It's probably loaded by an app. But it's pretty hard to trace which app. I read a similar topic on the forums, Somone mentioned an app called Kit.
For things loaded in content for header, there should be a data-loadedBy tag so we know what app is generating what.
Fb files are loaded by content_for_header
Use capture and a filter to remove them
https://community.shopify.com/c/Shopify-Discussion/Benefits-of-content-for-header/m-p/863692#M192756
So just confirming that Shopify loads this stuff automatically by default - for everyone?
Or is it because uninstalling Facebook apps doesn't also remove calls to associated JS files?
This is an accepted solution.
Honestly Im not sure, I don't think it's loaded by default. It's probably loaded by an app. But it's pretty hard to trace which app. I read a similar topic on the forums, Somone mentioned an app called Kit.
For things loaded in content for header, there should be a data-loadedBy tag so we know what app is generating what.
Removing the Kit app removed the FB JS and page load is noticeably faster on mobile - thank you.
Hi
I don't have kit installed but i've the same problem. What's strange is that when i comment "content for header" the facebook and google analytics scripts still appears. Seems like they're loaded automaticaly by shopify.. I've contact support which say they have remove the connexion on their side and that it might take more than 20 days to take effect... WTF ?! Are they joking ?!!
Any help would be welcome.
@Dams-Care A similar situation to the one your describing happened to us, we removed the facebook and google channels and cleared cache and the requests disappeared. I don't mind having a look at your site to try and find where these requests originate from. What's your stores url?
Best,
eStoreSpeedOptimization
Is there a solution for this issue?
I've removed all the FB features from Shopify but google still shows requests like: https://connect.facebook.net/signals/config/...
With great pleasure, we got rid of facebook from our store two months ago as they were slowing down the store and producing no value for us.
Remember to remove the advertising pixel and remove any code within liquid that relates to facebook.
- m
And
Removing the pixel seems to be a little destructive as would this not reduce the data shared with FB for marketing insight?
I am keen to increase the site speed but I need to ensure that it is a measured response.
It's totally up to the merchant, plenty of large businesses don't use FB pixel, some have made their own feature in hour (who knows if that would be smaller)
Basecamp, for instance, has no tracking on it's landing website.
Again, its up the merchant, if you want to have FB, keep FB.
Me too.
I have read somewhere outside of shopify that we should place the Facebook Pixel snippet at the end, just before the closing body tag, and wrap it in a 3s delay timer.
Not sure how to do that though as Shopify automates the inclusion of this code by us adding our Facebook ID to shopify preferences...
I believe the Loox review app loads these Facebook files.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025