Hosting Javascript/Css on CDN fails to load on slow connections

755 Views Asked by At

I am using various other Javascripts/Css to load from Google hosted libraries but they fail to load on slow connections. Please guide me to find an alternative solution for the same.

I tried searching for the solution most of them say download the js/css files and include in your project and run, this is not the solution.

Please help to find the solution for the slow connections.

Regards

1

There are 1 best solutions below

7
On

Usually javascript or css on CDN loads faster if you use libraries hosted by Google etc. So the alternative you tried is to attach the file/s in your project.According to you that's too is slow.So you have only one option left.That's to copy the codes from the libraries and paste it directly into your HTML page.
Point to remember that, whatever way you try, ultimately your script or css need to be downloaded by the browser in order to use them. So,ultimately all ways are some.But servers like Google is are always faster than most of the other servers we used.So in real time scenario CDN is a little bit faster.