Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top