HTML and CSS Reference
In-Depth Information
We can do something similar for jQuery UI.
All jQuery plugins are objects within the jQuery object. So, we only need to verify
whether the plugin object exists and if it doesn't, load the copy of the plugin in the
libs folder, using the following code snippet:
<script>window.jQuery.ui ||
document.write('<script src="js/libs/
Hence, our complete script file for referencing jQuery UI would be as shown in the
following code snippet:
<script src="//
jqueryui/1.8.16/jquery-ui.min.js "></script>
<script>window.jQuery.ui ||
document.write('<script src="js/libs/
There are other CDNs that host libraries too. The URL hosts a lot
of JavaScript libraries. Microsoft also hosts a few libraries on its CDN; the list is
available at .
Adding Google Analytics ID
This is another of those minor actions that gets forgotten when deadlines come call-
ing. HTML5 Boilerplate already provides the ready snippet for you to use. All you
need to include is the unique identifier for your website.
Note that HTML5 Boilerplate includes the snippet at the footer of the page, which
means the metrics get sent only after the page is loaded. However, there are a few
Search WWH ::

Custom Search