managing document.ready event(s) on a large-scale website

后端 未结 9 1456
予麋鹿
予麋鹿 2021-01-30 10:51

NOTE: I have now created a jQuery plugin which is my attempt of a solution to this issue. I am sure that it could be improved and i\'ve probably overlooked lots of use c

9条回答
  •  情话喂你
    2021-01-30 11:29

    I like the RameshVel approach. I also found the Paloma gem to create page-specific JavaScript. For instance:

    Paloma.controller('Admin/Users', {
      new: function(){
        // Handle new admin user
      }
    });
    

提交回复
热议问题