Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there any examples of server-side rendering that pre-determines a masonary layout for the content?

Like: Given these images, and this window size, here's a calculated layout to make them all look nice...

I figure this would be more performant than any type of JS polyfill



How would this work when loading the page the first time? Would you check the window size and reload once just to get the first layout? And would you reload the page every time the window is resized?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: