All Javascript Optimization Tips & Techniques
Parsing Objects in Javascript if you are using object like this.
const data = {foo: 42, bar: 1337, ... }; use the JSON.parse() instead
const data = JSON.parse('{"foo":42,"bar":1337, ... }'); It seems slower, but in the real world IT IS WAY WAY FASTER.
Why is it faster? because JSON.parse() has one token (Javascript object literal), but the string literal has too many tokens. want to know more ? watch this video from Google chrome developers YouTube channel.