Preload script without execute

前端 未结 6 1863
生来不讨喜
生来不讨喜 2020-12-06 17:09

Problem

In order to improve the page performance I need to preload scripts that I will need to run on the bottom page.

I

6条回答
  •  [愿得一人]
    2020-12-06 17:42

    You should have a look at the following links:

    http://calendar.perfplanet.com/2011/lazy-evaluation-of-commonjs-modules/

    http://tomdale.net/2012/01/amd-is-not-the-answer/

    And at how ember.js is using a tool called minispade and preprocessing with ruby to make the process of loading, parsing and running javascript modules fast.

提交回复
热议问题