Home

Noppanit

09 Feb 2014

Example of Require.js optimizer.

I decided to write this blog post to show how easy it is to setup require.js optimizer and how many bytes it saves.

To make it as simple as possible, I created this repository on github to show the real example.

This is the results of optimisation.

And this is the result of non-optimized version.

It’s clear to see that the optimized version takes shorter to load the script, where as the non-optimized version in the files might be smaller but with a lot of calls, it takes longer to load all the scripts.

Til next time,
noppanit at 00:00

scribble