2012-03-11 77 views
0

我想知道如果有人在那里知道zurbs foundation哪些js文件需要jquery。我在wordpress中构建了我的functions.php文件,并且我想为这些脚本设置依赖关系(如果有的话),以确保它们在Jquery文件之后加载。下面是文件列表Zurb基金会jquery依赖关系

  • modernizer.js
  • foundation.js
  • app.js

再次哪些有jQuery的依赖关系?

回答

0

这个问题是有点老了,所以现在的问题不会是完全一样的:

modernizer.js不需要jQuery的,我想基础&应用做了,但是zurb有显著改变的JavaScript文件,包括他们自己的现代化分支(modernizr.foundation.js) - 当前(基础2.2)“首选”加载顺序是:

<head> 
<script src="js/modernizr.foundation.js"></script> 
</head> 

<body> 
... 
... 
<!-- end of container/all content --> 

<script src="js/jquery-1.7.2.js"></script> 

<!-- all the jQuery dependent files begin with 'jquery.' and are separated so 
you can remove what you don't use --> 


<script src="js/jquery.reveal.js"></script> 
<script src="js/jquery.orbit-1.4.0.js"></script> 
<script src="js/jquery.customforms.js"></script> 
<script src="js/jquery.placeholder.min.js"></script> 
<script src="js/jquery.tooltips.js"></script> 

<!-- app.js is basic functions that you're supposed to edit - 
it requires jQuery to start as well --> 

<script src="js/app.js"></script> 
</body>