From: Rafael C. <raf...@gm...> - 2016-10-18 18:09:54
|
Hi, Recently, I updated the file MiscFunctions.js. I added comments and improve the format. Now it is more easy to understand the code. But it has a big disadvantage: Each html page generated by the webERP loads that file through ~/includes/header.inc. That is: if we add comments and reformat the code to make it very easy to understand, we increase the traffic of that file to about 239% (more comments and spaces in formatting code). Someone say me that he prefers a minimum file size to prioritise the principle "low footprint" (absolutely minimal network traffic) over to "easily readable", because this file is modified infrequently. That is: to have a MiscFunctions.js without comments (explanations) and put them in the manual. Also, to remove the spacing for easy reading. I agree. But, if we are strict, that "minimising" principle should apply to all JavaScript, CSS and HTML code. Comments? Opinions? Best regards, Rafael. |