Better HN
topnewbestaskshowjobs
Log inSign up

fsdffs

5 karma · joined Jul 31, 2015 (11y ago) · 1 submissions

Submissions

comment 11y ago · link · parent

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.