I'm just curious that why the js frameworks' size is so small( usually under 100k ), but if you see some of the java framework packages( the jar files ) normally takes over several megabytes, or even hundred megabytes. What's making them so different?

有帮助吗?

解决方案

For one, Javascript frameworks are just Javascript files (it's just plain text without binaries unlike JARs) so they are just packaged as is.

Second, they are usually uglified and compressed so that they could be sent to the client efficiently whereas JAR files just reside in the server so its size is less of an issue.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top