Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top