javascript - Enclosing external jQuery file in $(document).ready() -


i have external javascript files contain jquery. should enclose of code in each of these external files in $(document).ready()? best practice here?

thanks!

include jquery script above them in page, , have each of other scripts included after it, in normal way. inside each of scripts, put necessary code in $(document).ready() structure. can use multiple times; aren't restricted once.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -