I’m trying to prevent a javascript file from loading if a user is on an iPhone. I’m using the Mobile ESP script for the detection, I’m just not sure what to add to this file to remove the unwanted file from loading.
In other words, what do I add to this file:
js/detect.js
…to prevent my page from loading the file:
js/jquery.ceebox-min.js
I think better than preventing loading if it is an iphone, you can only load if it is not an iphone, for that there’s jQuerys
getScript.