Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

jQuery Mobile installation


May 21, 2021 jQuery Mobile


Table of contents


jQuery Mobile installation

Before you get started with jQuery Mobile, you'll need to install it, and this section teaches you how to install jQuery Mobile correctly.

Add jQuery Mobile to your web page

You can add jQuery Mobile to your web page in several ways:

  • Loading jQuery Mobile from the CDN (recommended)
  • Download jQuerymobile.com Mobile library from the website

Load jQuery Mobile from the CDN

jQuery Mobile installation The full name of the CDN is Content Delivery Network, or Content Distribution Network. The basic idea is to avoid bottlenecks and links on the Internet that may affect data transmission speed and stability as much as possible, so that content transmission is faster and more stable.

With the jQuery kernel, you don't need to install anything on your computer; You only need to load the following cascading styles (.css) and JavaScript libraries (.js) into your web page to be able to use jQuery Mobile:

jQuery Mobile CDN:

<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" rel="external nofollow" target="_blank" >
<script src="http://code.jquery.com/jquery-1.8.3.min.js" rel="external nofollow" ></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js" rel="external nofollow" ></script>
</head>

Try it out . . .


Download jQuery Mobile

If you want to put jQuery Mobile on your console, you can download the file jQuerymobile.com the file.

<head>
<link rel=stylesheet href=jquery.mobile-1.3.2.css>
<script src=jquery.js></script>
<script src=jquery.mobile-1.3.2.js></script>
</head>

Tip: Place the downloaded files in the same directory as the Web page.

jQuery Mobile installation Do you want to know why you didn't insert type"text/javascript" in the hashtag?

This property is no longer required in HTML5. JavaScript is the default scripting language for HTML5 in all modern browsers!