jimhigson / oboe.js

A streaming approach to JSON. Oboe.js speeds up web applications by providing parsed objects before the response completes.
http://oboejs.com
Other
4.77k stars 209 forks source link

Removing reference to window object, to make oboe.js usable with web workers. #226

Open paulsmithkc opened 3 years ago

paulsmithkc commented 3 years ago

Line 2774 references window.location instead of location Line 2788 references window.setTimeout instead of setTimeout

Simply changing these two lines so that they refer to the default global object instead window makes oboe.js usable in a web worker.

Linked Issue #225

paulsmithkc commented 2 years ago

ping @jimhigson

paulsmithkc commented 2 years ago

bump This is a blocking issue for using oboe.js with web workers, which results in a massive performance boost.