downstyler icon indicating copy to clipboard operation
downstyler copied to clipboard

Change bookmarklet to download the style before applying it

Open waldyrious opened this issue 8 years ago • 1 comments

Currently the bookmarklet removes all styles from the page and dynamically adds the downstyler.css stylesheet, which can take a second or two to load / apply, resulting in the dreaded flash of unstyled content. It would be better to first ensure the style is ready, and only then apply it.

waldyrious avatar Aug 21 '17 12:08 waldyrious

Actually, since the stylesheet isn't that big, why not embed it directly in the bookmarklet? Then it would be instant. So instead of adding a <style src="...">, the bookmarklet would add a <style>...</style> to the HTML.

waldyrious avatar Nov 11 '22 14:11 waldyrious