TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rebuild YouTube's mobile-like progress bar in jQuery

52 pointsby ynhalmost 12 years ago

8 comments

thejoshalmost 12 years ago
I really dislike the new loading bar in the YouTube site as videos continue to play while the next page is loaded.<p>I'm on a fast connection so normally youtube loads instantly anyway, but this new method takes 4-10 seconds.
评论 #5763589 未加载
X4almost 12 years ago
Yep, I've also seen that. But your markup is wrong. You should use &#60;progress&#62; instead<p>I am using a kde widget called adjustable-clock which uses html5/css3/javascript and qml to render my system clock.<p>Here's the source for the current clock I use, it uses a progressbar for the seconds: <a href="http://htmlpaste.com/7e957bb5523fa58f98b6657073c4a544942a13c3" rel="nofollow">http://htmlpaste.com/7e957bb5523fa58f98b6657073c4a544942a13c...</a><p>QML:<p><pre><code> Clock.setRule('#hour', Clock.Hour); Clock.setRule('#minute', Clock.Minute); Clock.setRule('#second', 'value', Clock.Second, {'short': true});</code></pre>
评论 #5763218 未加载
评论 #5762150 未加载
pstadleralmost 12 years ago
I did the same on <a href="https://www.mila.com" rel="nofollow">https://www.mila.com</a><p>It's fairly simple but it took some time to figure out the right sequence and timing for it to run smoothly across all devices / browsers.
druskaalmost 12 years ago
I like it. Just remember if you use this in production, save $("#progress") in a variable in the ajaxStart function to improve performance (this will call Sizzle one less time usually).
zemajalmost 12 years ago
That's very nifty, thanks! Subtle, yet gets the point across.<p>Plenty of interesting ways that kind of bar could be included in a site.
paulfarinoalmost 12 years ago
I've been looking for this for a few weeks. Noticed on the Google Search iOS app. Thanks!
ezraroialmost 12 years ago
Nicely done and handful. Thanks
BaconJuicealmost 12 years ago
very cool, thanks for sharing