
Sprockets!!, ..it seems a word someone would scream out loud when being angry, but it is just a nice and handy way to make one js file out of your, perharps, messy javascript.
When is it usefull??. Let me point out some examples:
- You are developing a portal framework tool and within the project you come up with a nice code to manage windows and dialog boxes. Suddenly your heart and mind decide to share that library with your friends, bloggers, techies.., ..use sprockets to take all the code used for that purpose to share it!!.
- As we all know, it is faster for the browser to handle one .js file of 100kbs than 20 .js 5kbs files . just because of the different calls to get files from the web server . So join up all your js files for speed your website.
- Work with seperate organized javascript files into separate folders, ..sprockets will just join them up.
- Having comments in your code is the normal way to work, and more baring in mind a big development. But comments translate into kbs, and we need our code lightweight..., hmmmm, no problem use sprockets to strip those comments!!.
0 comentarios:
Publicar un comentario en la entrada