With jQuery, you have two external scripts that use $ (document) .ready (function ()?

I want to split the jQuery.js file in two, but I noticed that some of the functionality aren't working when I split it. This is because I have two external scripts that start with:

$ (document) .ready (function () {

Isn't that impossible?

+1


source to share


2 answers


Yes, you can have two scripts that install $(document).ready(...).



+4


source


Oops, I think I found the answer.



http://docs.jquery.com/Events/ready#fn

0


source







All Articles