News for hackers. Stuff that matters.
Re:Show HN: A visual guide to the most popular CSS properties by Kiro on Thursday November 24, 2016 @12:54PM (#13031642)
How would they fix that? It's rendering all the examples on one page (like it should) so I understand it takes a long time.
Re:Show HN: A visual guide to the most popular CSS properties by bryanrasmussen on Thursday November 24, 2016 @01:37PM (#13031955)
Well they could have a list of the properties without them all rendered and then render just the property they need when someone clicks on the property name.

And why should it render all examples on one page?

They could have a static page for every property so one could link to http://cssreference.io/align-content instead of http://cssreference.io/#align-content and get just that static page. That should be pretty quick, especially with long caching of all other resources than the actual page content.

There's lots of different ways to have done it without having to do it all at once.

Re:Show HN: A visual guide to the most popular CSS properties by Kiro on Thursday November 24, 2016 @02:25PM (#13032228)
I personally don't like that solution. I want to see everything (on one page) without having to click anything.
Re:Show HN: A visual guide to the most popular CSS properties by hexasquid on Friday November 25, 2016 @08:00AM (#13036402)
How about both?
Re:Show HN: A visual guide to the most popular CSS properties by 91bananas on Friday November 25, 2016 @11:30AM (#13037815)
Then someone would have complained that this site needed JavaScript to handle those click event.

Or, would have complained that it was stupid to actually use an anchor tag to link to god forbid another complete page load.

Or, if they used a javascript framework to make deep links someone would have complained that they used a javascript framework for a static page, or even maybe they used the wrong JavaScript framework.

Re:Show HN: A visual guide to the most popular CSS properties by rohannair on Thursday November 24, 2016 @12:56PM (#13031657)
> like it should

No it shouldn't. Split up large chunks if it impacts performance.

Re:Show HN: A visual guide to the most popular CSS properties by Kiro on Thursday November 24, 2016 @01:21PM (#13031836)
I think it's much better UX to show everything on one page in this case. You're speaking like this is an application, completely disregarding the purpose.
Re:Show HN: A visual guide to the most popular CSS properties by prashnts on Thursday November 24, 2016 @01:29PM (#13031890)
I agree that it is fine for a reference site. Though, Virtual elements are possibly a solution where only the current viewport is painted.
Re:Show HN: A visual guide to the most popular CSS properties by Raphmedia on Thursday November 24, 2016 @12:59PM (#13031682)
The best solution would be to lazy load. If you can only see the first 3 property on page load, there is no gain in having them all load at the same time.
Re:Show HN: A visual guide to the most popular CSS properties by dom0 on Thursday November 24, 2016 @01:18PM (#13031808)
No it wouldn't, because this means additional delays for anyone that is actually using the site.
Re:Show HN: A visual guide to the most popular CSS properties by Raphmedia on Thursday November 24, 2016 @01:48PM (#13032036)
Lazy loading done well is invisible for the user. You preload things as users scroll down and when user hover / click on one of the anchors.
Re:Show HN: A visual guide to the most popular CSS properties by mschuster91 on Thursday November 24, 2016 @01:59PM (#13032099)
That doesn't work for those ctrl+f'ing for a specific property.

I'd probably do a full load for the text, with specifying the height for the examples inline, and then lazy-render the examples once they're visible.

Re:Show HN: A visual guide to the most popular CSS properties by scotty79 on Thursday November 24, 2016 @04:50PM (#13033006)
You could have all content just unstyled (apart from sections heights) and enable the style for each section as it comes into view.

The problem with this site is not that it has too much context. Just too much new and crazy styles.

Re:Show HN: A visual guide to the most popular CSS properties by Raphmedia on Thursday November 24, 2016 @02:46PM (#13032333)
You would still need all the text to be in the markup for SEO purposes anyway.
Re:Show HN: A visual guide to the most popular CSS properties by flukus on Friday November 25, 2016 @01:30AM (#13034728)
Like how wikipedia does it? Full content but mostly collapsed.
Re:Show HN: A visual guide to the most popular CSS properties by jklinger410 on Thursday November 24, 2016 @01:17PM (#13031803)
The page almost crashed my browser and made me not want to use it.

Very lazy on the part of the developer to code it that way.

Re:Show HN: A visual guide to the most popular CSS properties by CamperBob2 on Thursday November 24, 2016 @05:50PM (#13033286)
The page almost crashed my browser

Thanks for the report. Hopefully the author will almost fix it.

Re:Show HN: A visual guide to the most popular CSS properties by jklinger410 on Thursday November 24, 2016 @11:25PM (#13034400)
My chrome was unresponsive but recovered.
Re:Show HN: A visual guide to the most popular CSS properties by Kiro on Thursday November 24, 2016 @01:22PM (#13031843)
How would you do it and still view all the properties on one page?
Re:Show HN: A visual guide to the most popular CSS properties by scotty79 on Thursday November 24, 2016 @04:55PM (#13033024)
Disable all the styles. Enable the styles just for the sections that are currently visible.

It would require setting section heights to fixed values so you can know which section is visible and enable and disable styles for them without changing the sites height.

Re:Show HN: A visual guide to the most popular CSS properties by jklinger410 on Thursday November 24, 2016 @02:06PM (#13032128)
I wouldn't have the properties on one page.
Re:Show HN: A visual guide to the most popular CSS properties by Kiro on Thursday November 24, 2016 @02:11PM (#13032156)
Then it's more a matter of taste than laziness. I very much prefer to have them all on a single page.
Re:Show HN: A visual guide to the most popular CSS properties by jklinger410 on Thursday November 24, 2016 @11:23PM (#13034398)
Except that it loads slowly which hurts the usability so it's not really that I prefer a certain layout but more that I prefer the page to load easily.