Jian Lin wrote:
Marnen Laibow-Koser wrote:
1) -# to add comment but not to show it to the public
Use a JS minifier.
2) using if else to output something based on some condition
3) using loop
JS Minifier when there are 5 lines of code?
If there are only 5 lines of code, why do you need private comments in
the first place?
Also, I think we can always do things another way...
but just that why
in a div and read it back from the div is good?
the code more maintainable, and also improves performance by allowing
regenerate it for each call.
(suppose they are
simple keywords from our db which keywords like "shirt", "shorts",
Then they should still be handled in the way I suggested. Dynamically