Hacker News new | ask | show | jobs
by gliese1337 4750 days ago
Inlining a worker with an ObjectURL is brilliant. It nicely solves the issue of worker script urls being resolved relative to the page, rather than relative to the URL of the calling script. I had previously solved that problem just by having the parent script read a global variable with the proper absolute path to the worker's location, but this is much nicer.
1 comments

gosh , it's a killer trick!