- Mastering Magento Theme Design
- Andrea Saccà
- 135字
- 2021-07-16 11:57:26
Downloading and including jQuery
Bootstrap is dependent on jQuery, so we have to download and include it before including boostrap.min.js
. So, download jQuery from http://jquery.com/download/.
The preceding URL takes us to the following screenshot:

We will use the compressed production Version 1.10.2.
Once you download jQuery, rename the file as jquery.min.js
and copy it into the js
skin folder at skin/frontend/bookstore/default/js/
.
In the same folder, also create the jquery.scripts.js
file, where we will insert our custom scripts.
Note
Magento uses Prototype as the main JavaScript library. To make jQuery work correctly without conflicts, you need to insert the no conflict code in the jquery.scripts.js
file, as shown in the following code:
// This is important! jQuery.noConflict(); jQuery(document).ready(function() { // Insert your scripts here });
The following is a quick recap of CSS and JS files:

- MySQL 8從入門到精通(視頻教學版)
- Apache Hive Essentials
- Magento 1.8 Development Cookbook
- Python數(shù)據(jù)挖掘與機器學習實戰(zhàn)
- H5頁面設計:Mugeda版(微課版)
- Python High Performance Programming
- Android群英傳
- Spring Boot實戰(zhàn)
- Python大規(guī)模機器學習
- Robot Framework Test Automation
- Web開發(fā)的平民英雄:PHP+MySQL
- Deep Learning for Natural Language Processing
- AngularJS UI Development
- Responsive Web Design with jQuery
- Ext JS源碼分析與開發(fā)實例寶典