SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Speed Up Flickr Embed

    Hi

    I've embedded a Flickr set on my html site. It works, the only problem is, the whole thing is pretty slow to load.

    Is there any Javascript I could use to speed it up, or preload it?

    Will ask on Flickr forum too, but was just wondering if any of you JS gurus would have a solution.

    Thanks

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    The best way to work with external scripts is to use an asynchronous request so that the page loads but doesn't have to wait a great deal of time for the flicker script to finish loading, Chris Coyier just wrote an article about this which you should enjoy.

    http://css-tricks.com/thinking-async/
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    Thanks for this, but I actually meant that the Flickr embed takes a while to load. The loading time for the site itself is fine.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by qwaerstd View Post
    Hi
    Thanks for this, but I actually meant that the Flickr embed takes a while to load. The loading time for the site itself is fine.
    Unless you have some form of control over that slow site, there isn't much that can be done to speed things up.

    It's possible though that you can help people to feel better about the situation though, by putting up a message that you're loading from there, and use an animated loading icon to let people know that things are in progress.
    It won't speed things up, but it can help inform people about what's happening and why.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

  6. #6
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can find plenty of tutorials to make an animated gif, but can't find anything to tell me how to install it on my site. If anyone can help it'd be much appreciated.
    Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •