https://stackoverflow.com/a/34902833/14773450
In this answer, would I be right in assuming that if I wanted to load a certain script ONLY for (say) iPhone, then I could delete some of the entries within isMobile()?
i.e. :
function isMobile() {
return (/iPhone/i.test(navigator.userAgent));
}