Our site initial load time is huge. And I just spotted that currently there's a real mess when it comes to loading of scripts. There are multiple copies of same libraries and I'm trying to trace these down to which ones are really being used. So by cleaning these up, I've run into some questions:
How to choose the best (most popular) CDN?
For example jQuery offers 5 possible solutions. How can I be sure which one is the most common one? To my understanding even exactly the same file will be downloaded again if it's from a different host.
Is there a way to check if the end-user already has jQuery from MaxCDN if not, then check Google CDN ... If neither one of these existed then try to load a copy from a chosen CDN. If that fails try loading it from somewhere else and finally a local copy?
Is it even possible to check where the end-users copy of the script is from?
Would this rather have a negative impact on the performance or a positive one?