javascript - Which jQuery libary should i include in my website? -


in website have few jquery because have few funcions (sticky header, anchors , animations). want know neccessery include of or can include 1 or 2 ?

here included jquerys

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.7.2.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.0.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> 

you should include following:

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.7.2.js"></script> 

this configuration support ie9+


if need ie7 or ie8, use:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.7.2.js"></script> 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -