Grow your CSS skills. Land your dream job.

Caching static html pages for ajax call

  • # March 6, 2009 at 7:47 pm

    I have been a fan of CSS – Tricks for almost a year now. And it has proved to be a priceless resource (Thanks Chris!) This is my first post although I think this is the plunge to be an active member of the community. :)

    Thank you in advance to anyone who can point me in the right direction.

    I have recently developed a site that uses ajax to bring in content for tooltips(see link below) and I am having trouble with load times. I would like to cache these html files in the background so there is no lag when they are called/ I would preferably like to load the index page and after loaded have the tooltip pages load in the background. Again thank you to anyone with a resolution to this issue. If js is going to be used I preferably would liek to use the prototype framework.

    http://getmoxied.net/merritt/

    Thanks again,

    Jeff

    # March 6, 2009 at 8:42 pm

    "see link below"

    I would if I could!

    # March 7, 2009 at 4:13 am

    sorry about that since been edited. it has been a while since I have used a forum(this is nice). I posted 2 posts by accident at first and deleted the correct one.

    thanks again

    # March 26, 2009 at 9:58 pm

    I see what you mean about the slow loading tooltips… I’m afraid I don’t have any hard and fast advice. That’s kind of the nature of loading things dynamically. A greater JavaScript developer than me could probably figure out a way…

    But as I see it right now, it doesn’t seem like there is so overly many tooltips that you’d have to even do it the way you are. Why not just include the content on the page itself so it doesn’t have to call any external files?

    Another solution might be a wicked fast server =)

    # March 26, 2009 at 11:07 pm

    If it makes a difference, the site loads in under a second, and the tool tips load within 1-2 seconds.

    Not helping with any JS problems, but it’s still fast on my end.

    Rob
    # March 27, 2009 at 5:36 am

    are you using a thumnail in your tooltip pic or is it the full image scaled down? It just seems like its taking an age to load that image…

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".