Should multiple js files be loaded asynchronously or merged.

83 5

It should be merged from a reduced number of requests, but there are multiple common js files that are used in different subnets, and should be used in a.

Which is more reasonable.

4 Answers

100 2

I think the Taobao nginx_concat_module is a good choice for you. It can incorporate the js file completely according to your needs so that you can deploy the files separately, dynamically merge, and more flexibility.

Here's the introduction.
http://www.gracecode.com/archives/304...

139 0

I think the Taobao nginx_concat_module is a good choice for you. It can incorporate the js file completely according to your needs so that you can deploy the files separately, dynamically merge, and more flexibility.

Here's the introduction.
http://www.gracecode.com/archives/304...

...