Web Worker javascript files

8 views
Skip to first unread message

Paul

unread,
Jan 26, 2016, 10:06:07 AM1/26/16
to rubyonrails-ta.
Using web workers in Rails seems a little awkward. I was wondering if anyone had a nice work flow.

1) 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?

Reply all
Reply to author
Forward
0 new messages