In this article we will discuss how to load jquery from local server if CDN is down. In some cases network of CDN might be down that time it helps load from local server.
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript">
window.jQuery || document.write('<scriptsrc="/Content/Scripts/query-1.10.min.js">\x3C/script>')
</script>
\x3C is hexadecimal for <
Post your comments / questions
Recent Article
- How to Encode & Decode using Base64 in Python?
- Unspecified error-The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support.
- How to generate a Captcha verification code image with Python?
- How to show an image using path python PIL?
- How to remove Background from the images using Python?
- Python generate QR code image
- Insert excel file data into MySQL database in Python
- ImportError: Missing optional dependency 'xlrd' | How tot Convert xls to xlsx | Python
Related Article