我想知道是否有人知道来自zurbs foundation的哪些js文件需要Jquery。我在wordpress中构建我的functions.php文件,我想设置脚本的依赖项,如果它们有任何,所以它们保证在Jquery文件之后加载。这是文件列表
哪些人对Jquery有依赖?
答案 0 :(得分: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>