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
Post a Comment