Performance impact of using css / javascript source-maps in production?

后端 未结 2 1814
忘掉有多难
忘掉有多难 2020-11-29 00:32
  • Should source-maps be used in production environment? Do they provide any benefits other than debugging?
  • Do they impact app load time due to the additional se
2条回答
  •  我在风中等你
    2020-11-29 01:22

    A quick test using Charles Web Proxy shows that source maps are only loaded if developer tools are opened. If you load a page without dev tools opened, there is no http request for source maps.

    The behaviour was the same in Chrome 43 and Firefox 38.

    So it appears they would be no impact on production environment.

提交回复
热议问题