Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can running 2 document.ready make them conflict?

In my application i am running $(document).ready( twice on on the same page is there going to be a conflict between them?
Thanks in Advance,
Dean

like image 667
Dean Avatar asked Jan 20 '26 14:01

Dean


1 Answers

Nope. jQuery events are stacked upon each other and will be executed one by one.

From the jQuery docs on bind():

When an event reaches an element, all handlers bound to that event type for the element are fired. If there are multiple handlers registered, they will always execute in the order in which they were bound.

like image 192
Pekka Avatar answered Jan 22 '26 03:01

Pekka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!