-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Hill Liu edited this page Mar 25, 2017
·
9 revisions
Some Relate Project
- Simple worker
- Work loader
- Work loader Sample
- https://github.com/react-atomic/react-atomic-organism/blob/master/packages/organism-react-ajax/src/stores/ajaxStore.js#L40-L53
if (window.Worker) {
require(['worker-loader!../../src/worker'],(workerObject)=>{
worker = workerObject();
initWorker(worker);
});
} else {
require(['../../src/worker'],(workerObject)=>{
worker = workerObject;
initWorker(worker);
isWorkerReady = true;
});
}