Hi Tom, Only necessary on web pages that need to differentiate between iOS and other operating systems/browsers. (Keep in mind, there are other mobile browsers out there … Chrome on Android, for example. So you shouldn’t be using iPad/iPhone detection code just to determine if you’re working with a small screen.)
We use it on pages that have embedded video, since the native iOS video player works better on iOS devices than our standard player does. It’s a good idea, generally, to have a single JS file that contains any javascript routines that are commonly used across your site … and other JS files that are specific to certain pages. Browser detection may fall in the former or latter category, depending on what you’re doing. If you’ve historically been using a browser detector somewhere that looked for the iPhone/iPad userAgent, this code would go in to replace (really, to augment) that. If that detection code is actually spread across multiple pages, you could either a) use this opportunity to put it in a single JS file and have those pages reference that file, or b) use a program like BBEdit or Dreamweaver to find those files and replace the code in each of them. As always, I recommend a pot of coffee and suitable mood music before starting. Ron __ Ron Rosell President StreamLMS > On Mar 7, 2020, at 3:06 PM, Tom Benedict <[email protected]> wrote: > > Thanks Ron. > > That looks like Javascript code. Do I need to add this to all my web pages? > > Tom ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

