DEV Community

loading...

Display: none; worsen or improve website performance?

iamspruce profile image spruce ・1 min read

webDevs does display: none; worsen website performance or improves it. πŸ‘‡πŸ‘‡

Discussion (4)

pic
Editor guide
Collapse
mikemai2awesome profile image
Mike Mai

It worsens accessibility.

Collapse
iamspruce profile image
spruce Author

Accessibility: I think it depends on how it is used

Collapse
mikemai2awesome profile image
Mike Mai

Absolutely, it is one of the most mis-used CSS props.

Thread Thread
iamspruce profile image
spruce Author

I totally agree