-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Bad page rendering with js disabled #64988
Comments
Using Edge doesn't support it but that just means edge users will have to rely on javascript as they already do today. |
I'm not sure it'd fix the initial issue which made us add this auto-parts hiding. We're doing a lot of changes into the DOM so the goal is to not render it in order to make the rendering way faster. Also, we're currently supporting down to IE9. So if a recent browser like Edge doesn't support it, I'm not too much into using such a feature... |
The content of details is hidden by default, only the summary is shown until you open it. So it would keep that property
I don't see any problems though
|
The advantage of the current situation is that it works on all supported browsers whereas |
Details does not show things by default unless you add the The same behavior can be implemented in old browsers with CSS rules. Javascript would only have to toggle the attribute. Lorem ipsumLorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et sem et lacus tincidunt posuere id sed orci. Orci varius natoque penatibus et magnis dis parturient montes |
That doesn't answer my concerns at all:
|
simplified compatibility shim for IE, omitting the caret styling: // default.css
details > * {display: none;}
details > summary {display: block;}
details[open] > * {display: block;}
// noscript.css
details > * {display: block;} This way it would not show everything by default and still would have to be unfolded via JS, exactly the same as today. No negative impact on rendering performance. |
For example in here: https://docs.rs/slab/0.4.2/slab/struct.Slab.html
No sections is shown because they're hidden by default. It should be overloaded with noscript so that they show by default in such case.
The text was updated successfully, but these errors were encountered: