Hacker News new | past | comments | ask | show | jobs | submit login

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!




Sorry I forgot to mention, I also use Fastclick(https://github.com/ftlabs/fastclick) for iOS.

JS is uglified. Libraries takes 55% of file size, and rest is my code.


The 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?


+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?


+1


+1. I would love a more detailed "How I built the HN single page app" post.


Yep, I figured that out! Now that I know I like the sidebar better than full width.




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

Search: