Jump to content

2nd page load takes long


spiceman

Recommended Posts

Not sure if this is a server prob or code prob but here is the scenario:

 

The first load of a php page on the site loads quickly... however, when i refresh the page or access it for  a second time then it takes twice as long to load the page...

 

So i am a little puzzled... since the first load is good then i assume the code is optimized... and because it takes long on the second access then i assume its the connection/server... but any specific things i can check?

 

 

Link to comment
Share on other sites

what happens the third, fourth, fifth, nth... you should be testing this more then a few requests, while also keeping track of each one's request time. you can also write a little timing call to output the script time at different points in the script, which helps isolate areas in the script that cause increased time. test with a simple html file too, see if you get the same behavior.

 

get in there and start seeing whats happening, you need a bit more data to find the issue you may be having. perhaps you are looking at it using IE 5.5 on a virtual windows ME instance using a macbook pro clone... that might cause an issue.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.