When does a dynamically loaded JavaScript library become available?

前端 未结 5 514
遥遥无期
遥遥无期 2021-01-18 19:37

I wrote JavaScript library to use FileSaver.js and its associated libraries. However, I don\'t want to always load FileSaver.js whenever someone wants to use my library. And

5条回答
  •  一向
    一向 (楼主)
    2021-01-18 19:58

    Use Head.js: http://headjs.com/

    It will load scripts on demand.

提交回复
热议问题