Delay script loading

后端 未结 7 706

So if I have the following:


and I simply want

相关标签:
7条回答
  • 2020-12-03 07:45

    If the purpose of this exercise is to delay the loading of external resources to simulate potential real life scenarios (e.g. when loading 3rd party widgets, etc), then I'd go down a very different route.

    The following are two different delay proxy implementations that can be used to simulate and test unexpected network conditions:

    • http://www.deelay.me/

    • https://www.npmjs.com/package/grunt-connect-delay

    They both work by using a prefix like /delay/5000/ to specify the delay simulation period.

    0 讨论(0)
提交回复
热议问题