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
https://forums.phpfreaks.com/topic/197384-2nd-page-load-takes-long/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.