Paul8
(Paul)
1
Using web workers in Rails seems a little awkward. I was wondering if anyone had a nice work flow.
- Since they are loaded directly, they can’t be in the asset pipeline, so I created a folder under public: public/web_workers/
Disadvantages:
-
The web worker code isn’t minimized.
-
The web worker code is not where all the other javascript files are, so it is a little bit “hidden” during development.
-
The web worker code doesn’t get the fingerprint, so I’ve had some issues with the browser caching the old code.
Can anyone improve on this system?
BenKoshy
(Ben Koshy)
2
Does this offer a solution?
It hasn’t been merged as of yet, but it looks promising.