Loading ...

Use CDN hosted files if avaliable but fall back to local hosted library | CodeAsp.Net

Use CDN hosted files if avaliable but fall back to local hosted library

 /5
0 (0votes)

This can be achieve like this:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
if (!window.jQuery) {
document.write('<script src="/path/to/your/jquery"><\/script>');
}
</script>

Comments (no comments yet)

Top Posts