Re:Non-Blocking Asynchronous JSON.parse Using the Fetch API
by fsdffs on Friday July 31, 2015 @04:53AM
(#9980654)
If you add a wrapper, maybe use a simple heuristic to switch between JSON.parse and fetch. Even something as simple as checking the length of the string may cut it: lower than X? use JSON.parse . Higher? Use fetch.
[ Parent
| on HN ]
Re:Non-Blocking Asynchronous JSON.parse Using the Fetch API
by nallerooth on Friday July 31, 2015 @07:20AM
(#9981114)
Sounds reasonable. This might, however, differ between different browsers too.