markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Process markdown in a worker

Open eight04 opened this issue 3 years ago • 3 comments

I got this message while trying to preview a 7MB markdown file. image

eight04 avatar Mar 09 '21 23:03 eight04

Hmm 7MB might be a lot indeed. I didn't know workers were available for extensions, will definitely look into it.

Cimbali avatar Mar 10 '21 07:03 Cimbali

Using workers is in fact really hard for this use-case, as the extension’s javascript files can not be loaded from the page where we inject the markdown rendering scripts, due to cross-site request limitations.

Cimbali avatar Apr 05 '21 00:04 Cimbali

In my experience, it is possible to use worker in background page and extension pages but I'm not sure about content script.

eight04 avatar Apr 05 '21 08:04 eight04