>> the HTML and/or CSS have been run through a minifier The purpose of these tools is to make code hard to understand by the curious Whitespace is eliminated and variables are changed to unhelpful names.
>
>No, usually the goal is to minimize bandwidth. Smaller files download faster. Readability does take a a hit, too, though. Honestly I'm more surprised if a site ISN'T minifying their code.
>
>BTW - Chrome dev. tools has a "Pretty Print" option available available when you're viewing the source. It doesn't restore variable names but it does reformat the code to make it easier to follow. It's the { } icon at the bottom, to the left of the Line #, Column # text.
Thanks for the input, Paul. Great point about making downloads faster so sites are snappier. Everyone wants that. However, and not to be argumentative, I think obscuring the code is also a good reason to use a minimizer. Maybe I am just not an open source kind of guy at heart ;-) I have always considered computer code as intellectual property which should be reasonably protected like any other property.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only