News for hackers. Stuff that matters.
Re:Hiding elements that require JavaScript without JavaScript by c0balt on Sunday April 06, 2025 @03:50PM (#43604381)
Wouldn't this lead to a delay of time to first content render? If you rely on display then a layout shift would also be an issue for JS-capable clients.
Re:Hiding elements that require JavaScript without JavaScript by charrondev on Sunday April 06, 2025 @04:39PM (#43604784)
Write that tiny of bit of JS inline in the head and put the class/attribute on the html element.