4 ms·
It works fine as a desktop app actually. The sidebar is just one part of the app, and if you click on a post, you get the full article / comments on the right s
by juretriglav 13y ago
It works fine as a desktop app actually. The sidebar is just one part of the app, and if you click on a post, you get the full article / comments on the right side.
Looks like no framework was used to build this (except for Zepto, I guess). Total size for JS is 55kb, for comparison Angular 1.0.7 minified is 78kb. CSS adds another 30kb, including the ico font that's base64 encoded in style.css. 115kb for the whole page on a fresh load, on subsequent loads it's only something like 4-5kb. Very nice!
- thekingshorses 13y agoSorry I forgot to mention, I also use Fastclick(https://github.com/ftlabs/fastclick https://github.com/ftlabs/fastclick) for iOS. JS is uglified. Libraries takes 55% of file size, and rest is my code.
- cpprototypes 13y agoThe UI performance for your web app is impressive. Did you use any other libraries besides fastclick? Or was it a lot of manual work and research to make the UI perform well?
- c2prods 13y ago+1. I don't know what are your plans with this app, but I would love to learn more about how you did that. Do you plan to open-source it?
- adrianlee 13y ago+1
- juretriglav 13y ago+1. I would love a more detailed "How I built the HN single page app" post.
- publicfig 13y agoYep, I figured that out! Now that I know I like the sidebar better than full width.