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
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
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.
User | Count |
---|---|
10 | |
9 | |
2 | |
2 | |
2 |