lots of data speed issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gth759k
Forum Commoner
Posts: 76
Joined: Mon Jun 15, 2009 3:04 am

lots of data speed issue

Post by gth759k »

I have this site I've been working on for a long time for a client and the number of things that has to load every time the page loads is getting to be a problem. I told my client that using jquery to hide/show parts of the site makes the initial download slower, but faster navigation after everything loads. However, we added a very large calendar application to the site and now it takes like 2.5 seconds for the initial download which is unacceptable. Does anyone know of a good in-between as far as making the initial load faster, but still being able to integrate this calendar into the same page as everything else? I tried using an ajax function to load the calendar when the user clicks on the event tab (with something like document.getElementById('calendarbox').innerHTML = httpObject.responseText;), but apparently the when innerHTML isn't recognizing my style declarations. Any help would be appreciated. Thanks.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: lots of data speed issue

Post by Christopher »

Use a cache so you do not have to generate the calendar every request. I would recommend Zend_Cache which can be used stand-alone.
(#10850)
Post Reply