I noticed that the jQuery ready event and function are used only once in most of my javascript. However, I was wandering if it is ok to use the ready event more than once. For example, is it ok to call functions in a ready event function call in my main html code, that then calls functions and events inside another ready event function call that is in my .js file?
Share
Yes this is completely acceptable:
In this case, when the dom is ready, code inside both (or as many
readyas you have) will be executed.