Is adding display: none; to entire components a good way to...

Outlaw

Senior Member
Founding Member
Bronze Star Bronze Star Bronze Star Bronze Star Bronze Star
Joined
Apr 6, 2025
Messages
1,092
Reaction Score
2,205
Hide a web-page section until it's ready for display? I'm wondering if "hiding" it from the browser is a smart way to get moving;

I don't want to delete a reviews section from the DOM, as once I get a few reviews going, it'll fill up. But as of now, it's a templated dynamically filled testimonials section with no entries as the company only has reviews across Facebook and that.

Could be chatting nonsense, highly likely.
 
Hide a web-page section until it's ready for display? I'm wondering if "hiding" it from the browser is a smart way to get moving;

I don't want to delete a reviews section from the DOM, as once I get a few reviews going, it'll fill up. But as of now, it's a templated dynamically filled testimonials section with no entries as the company only has reviews across Facebook and that.

Could be chatting nonsense, highly likely.
You can "hide it" yeah

BUT if you are relying it on social proof for rankings i.e google picking up and showing reviews in the SERPs although it can see the code, it will read the CSS as "hidden" and in effect "ignore' that bit of code.

If you got reviews show them.

I don't, as I don't think they matter. But if you plan on showing them in the future might as well just display them now.
 
Back
Top