TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Brag to HN: I did it.

1 点作者 mwdev大约 14 年前
Finally. I pushed out the thing that has been eating my lunch for the last few months. I'll show you, but you have to come to Houston:<p>http://houston.startupweekend.org/<p>I'll be showing off my new project there and we could use a few more hackers. Come check it out and code with us.<p>If my site doesn't crash and burn over the weekend I'll post a link here.<p>I might minify .js first though.<p>PS. Can't pimp appharbor enough. They made this possible. PPS. I hope this will be a testament to the 30+, wife and kids entreprenuers out there that it can be done.

1 comment

rodion_89大约 14 年前
This seems like it could spawn some interesting projects!<p>WARNING: Rant<p>One thing that bothers me that has little to do with the event is the page loading efficiency of the site. It takes an average of 15 seconds for the initial HTML document to load on my 10Mb/s connection. That's not including window.onload JavaScript execution. A couple of things.<p>1. You will want to gzip compress your static js and css files. It will speed things up for you.<p>2. When you load images in an img tag you will want to define the height and width of those elements so that they load faster (since load times are an issue).<p>3. I'm getting a lot of JavaScript errors in Chrome 9. (I haven't tested other browsers)<p>4. Put your script tags at the end of your body so that the page can load before the JavaScript is executed. This will help it feel faster. (Is this a WordPress thing that you can't change?)<p>5. There are two "Follow Me" tabs floating on the right. Consider removing one (especially since they are overlapping eachother).<p>6. Try to combine as many JavaScript or CSS files as you can to minimize requests.<p>7. You have included jQuery 1.4.4 AND 1.4.2. Remove one of them.<p>8. If you have time, use css sprites. Combine multiple images into a single image and use 'background-position' to get the specific one you want. This would be perfect for something like the Facebook, Twitter, and LinkedIn buttons at the top.<p>/rant