I’m asking this just for the sake of shaving a few bytes. I know I can use +x (unary plus) instead of Number(x). Is there a difference between those and parseFloat? Answer The difference between parseFloat and Number parseFloat/parseInt is for parsing a string, while Number/+ is for coercing a value to a number. They behave differently. But first let’s
Tag: optimization
Javascript Optimization, where to begin?
I’ve started work recently at a new company and they have an existing application with 1000s of lines of Javascript code. The baseline contains dozens of JS files with easily over 10,000 custom lines of code, they also use multiple 3rd party libraries such as Jquery, Livequery, JQTransform and others. One of the major complaints they have been receiving from