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.
Solved! Go to the solution
Fb files are loaded by content_for_header
Use capture and a filter to remove them
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.
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?