-
Notifications
You must be signed in to change notification settings - Fork 350
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
Remove distracting and unnecessary tags #122
Comments
@buriy No opinion? |
well, this is not the goal of the project. |
Understood, sorry for bothering. Still, I don't think SVGs enhance readability in the general case. |
Sorry, maybe I haven't expressed my thoughts clearly. |
Fair, I suppose I could craft a more thorough PR. Your suggestions on how to implement this seem fine. The reason for intially proposing to remove SVGs came from googling around on typical use cases for SVGs. The results made it seem as if they are not that informative - icons, logos, lines and animations seem to be the most typical uses. So my argument for removing them was mostly "a priori", so to speak. I really tried to find counter examples, but SVGs in the bodies of documents seem to be fairly rare I guess? That's also part of the reason why I've listed only two examples. Also note that this issue mentions |
In real projects I just use https://bleach.readthedocs.io/en/latest/ |
SVGs often render way too big on most websites (see e.g. github and the mozilla docs, see also the screenshot below), providing quite the distraction. Moreover, they are generally non-informative parts of a website (I'm no web developer, but one common use is providing structural rather than contentful information, such as scaleable buttons/ui elements). If someone knows websites that use a lot of non-distracting SVGs removing or altering them is obviously not a good idea.
Other HTML tags that don't add anything to the readability of a page are
<input>
and<button>
tags. I therefore propose to delete them. I'm willing to create a PR, given that I've already tried this for a script in qutebrowser.Alternatively, SVGs could be scaled to make them less distracting. Looking at the SVG documentation, I suppose one could do something with the width attribute of SVGs. Not really sure how you should infer a good
width
value for a given SVG and browser window size though (someone who knows something about web development might, however). For reference, I've included a screenshot of the SVG above with a changedwidth
value. To be honest, even though the SVG looks much better, I do not see in what way it enhances readability (at best, it's not distracting, but without much purpose).The text was updated successfully, but these errors were encountered: