Good day.

A couple of tasks appeared at work, the essence of which comes down to the fact that:

  • there is some old mechanism with an old browser
  • Are there any that are already preinstalled in the project, and do not go on the old b + jquery.

Question 1: How to connect correctly for say 95% of users default jquery, and the rest to issue as needed (say one v1, others v2)

Question 2: are there any best pratices in trapping a browser version, and issuing to it a corresponding version of language (note: JS) scripts

PS so far the only thing that comes to mind:

get $ _SERVER ['HTTP_USER_AGENT'], parse it, and knowing that roughly gChrome <version 50 takes the 2nd jquery, take it, and give it away, BUT this solution seems to me unnatural

    0