What's the name of Google Analytics async design pattern and where is it used?

前端 未结 4 1122
[愿得一人]
[愿得一人] 2020-12-12 10:38

Google Analytics async code uses a very distinct design pattern for javascript code execution.

The code depends on a library and it doesn\'t know if the library has

4条回答
  •  遥遥无期
    2020-12-12 11:14

    A good writeup of javascript loading stratgies is available here http://friendlybit.com/js/lazy-loading-asyncronous-javascript/

    And as far as I recall, ga.js async syntax has been inspired by Steve Souders. You can look at ControlJS , one of his projects

提交回复
热议问题