diff --git a/docs/docs.html b/docs/docs.html index cdd0f06..bd842f1 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -447,7 +447,7 @@ var csv = Papa.unparse({ worker - Whether or not to use a worker thread. Using a worker will keep your page reactive, but may be slightly slower. Web Workers also load the entire Javascript file, so be careful when combining other libraries in the same file as Papa Parse. Note that worker option is only available when parsing files and not when converting from JSON to CSV. + Whether or not to use a worker thread. Using a worker will keep your page reactive, but may be slightly slower. diff --git a/docs/faq.html b/docs/faq.html index 02d9594..eacb409 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -84,7 +84,7 @@
Can I put other libraries in the same file as Papa Parse?

- Yes, but then don't use the Web Worker feature unless your other dependencies are battle-hardened for worker threads. A worker thread loads an entire file, not just a function, so all those dependencies would be executed in an environment without a DOM and other window features. If any of those dependencies crash (Cannot read property "defaultView" of undefined is common), the whole worker thread will crash and parsing will not succeed. + Yes.

@@ -96,7 +96,7 @@
Can Papa Parse be loaded asynchronously (after the page loads)?

- Yes. + Yes.

@@ -209,7 +209,7 @@
Can I use a worker if I combine/concatenate my Javascript files?

- Probably not. It's safest to concatenate the rest of your dependencies and include Papa Parse in a seperate file. Any library that expects to have access to the window or DOM will crash when executed in a worker thread. Only put other libraries in the same file if they are ready to be used in worker threads. + Yes.

When should I use a worker?