loading javascript file after jquery.ready

后端 未结 4 1440
轮回少年
轮回少年 2020-12-28 22:27

I want to load a javascript file at the end of jquery.ready so that the code in my ready handler doesn\'t have to wait to execute until this large javascript file is loaded.

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-28 22:54

    If your application is new and not too far along yet, you could get a lot out of using LABjs for that purpose. It allows all your script files to load in parallel or, even, at any other time that you prefer (on demand). http://labjs.com/

提交回复
热议问题