Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Shelane French
Added: Jan 24, 2020 9:09 PM
Views: 87
Tags: jquery
  1. //to check if a script is included before including it again, check against function of script
  2.  
  3. if (typeof($.gritter) == 'undefined') {
  4.     $.getScript('/resources/javascripts/jQuery/gritter/jquery.gritter.min.js');
  5. }