Every line of 'jquery.min.js' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
24 function loadJQuery() { 25 if(!window.jQuery) {// load only if its required as it is giving problem on many pages. 26 addLibrary("/thirdparty/pratikabu-jquery.js", function(result) { 27 eval(result); 28 pratikabusttjquery = window.jQuery.noConflict(true);// this line will replace any existing mapping of $ and jQuery on the current page 29 loadCompleteFile(); 30 }); 31 } else { 32 pratikabusttjquery = window.jQuery; 33 loadCompleteFile(); 34 } 35 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
49 function setupJquery(data) { 50 var jqueryCDN = ' script(src="https://code.jquery.com/jquery-{{JQUERY_VERSION}}.min.js" integrity="{{JQUERY_SRI_HASH}}" crossorigin="anonymous")'; 51 var jqueryLocalFallback = " <script>window.jQuery || document.write(" + "'<script src=" + '"js/vendor/jquery/dist/jquery/jquery.min.js"' + "><\\/script>')</script>"; 52 gulp.src(jqueryPath) 53 .pipe(gulp.dest('./build/js/vendor/jquery/dist/jquery')); 54 data.splice(data.length, 0, jqueryCDN); 55 data.splice(data.length, 0, jqueryLocalFallback); 56 }