- 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:

- 演進式架構(原書第2版)
- Visual FoxPro程序設計教程
- x86匯編語言:從實模式到保護模式(第2版)
- Windows Presentation Foundation Development Cookbook
- 精通Python自然語言處理
- Big Data Analytics
- Access 2010數據庫應用技術(第2版)
- Python極簡講義:一本書入門數據分析與機器學習
- 區塊鏈技術進階與實戰(第2版)
- Unity 3D/2D移動開發實戰教程
- Spring+Spring MVC+MyBatis從零開始學
- Java EE 7 with GlassFish 4 Application Server
- Python機器學習與量化投資
- Java Web動態網站開發(第2版·微課版)
- Java 11 and 12:New Features