What are the side effects (if any) of multiple $(document).ready() in an HTML page?
问题 I am using a web application framework (Symfony 1.3.6), which follows the MVC pattern. The view layer is comprised of a template decorator. The template file may also include other templates - this is what gives rise to my question. Assuming that there is a page (lets call it the 'homepage'), which is comprised of several templates - (the code has been refactored out so the 'sub templates' can be used on other pages. As a result of the refactoring, the small templates - which are used by the