Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change bookmarklet to download the style before applying it #37

Open
waldyrious opened this issue Aug 21, 2017 · 1 comment
Open

Change bookmarklet to download the style before applying it #37

waldyrious opened this issue Aug 21, 2017 · 1 comment

Comments

@waldyrious
Copy link
Owner

waldyrious commented Aug 21, 2017

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
Copy link
Owner Author

waldyrious commented Nov 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant