Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fsdffs
· 11y ago · 0 comments
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.
Comments
[–]
nallerooth
11y ago
Sounds reasonable. This might, however, differ between different browsers too.