Reduce HTTP requests or not?

前端 未结 7 1976
野性不改
野性不改 2021-02-01 05:57

A theoretical question:
We all know about the pro\'s of minifying and combining javascript files in order to reduce HTTP requests to speed up a website. But when popular jav

7条回答
  •  失恋的感觉
    2021-02-01 06:32

    I think the best approach is to use a minified 'application.js' file (containing all application specific javascript) and then use a service such as Google AJAX Libraries API (found here) to load jQuery, Prototype, etc.

提交回复
热议问题