downstyler
downstyler copied to clipboard
Change bookmarklet to download the style before applying it
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.
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.