Should we wrap jquery code $(document).ready(function(){ in external js also
- by metal-gear-solid
When we write inline javascript in then we keep code inside
$(document).ready(function(){
// Your code here
});
and if i want to paste
code // Your code here
in external .js file then should i keep code inside this
$(document).ready(function(){
// Your code here
});
or we can have without this
// Your code here