#TIL : JSON Parse is faster than Javascript Object declaration
I learned on 2019-11-23 about javascript, json, performance, web
TLDR;
Use JSON.parse("[your data in json string]") if your data is big (>10KB for instance)
Short Explaination :
JSON.parse parses a string to object, so it has many strict requirements than Javascript parses the source code (more syntax, more context)
Long Explaination :
Enjoyed this?
Leave a kudo — it means a lot.
0