First time here? Check out the FAQ!
1

askbot latency

askbot's pages take a lot of time to load. For example the average latency of this page was close of 1100 ms which is huge

Network latency was 1065ms (responseEnd - fetchStart).

The page took 1688ms to load after it was received from the server (loadEventEnd - responseEnd).

Navigation and page load took a total of 2753ms (loadEventEnd - navigationStart).

is there a way to reduce the latency?

poseidonsg's avatar
21
poseidonsg
asked 2011-11-25 08:12:39 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Notice that all the js files in the production mode are loaded in the end of the page - that will reduce the apparent page load time. We are now working on spriting all images so there will be fewer requests to load the media files.

Evgeny's avatar Evgeny (2011-11-25 11:12:31 -0500) edit
Joseph's avatar Joseph (2011-11-28 03:54:51 -0500) edit

I recommended you use some of the tags I used "speed" and "profile" so these appear as related questions. I dont' have enough karma to edit your tags.

Joseph's avatar Joseph (2011-11-28 03:55:28 -0500) edit
add a comment see more comments

1 Answer

0

Most likely it is due to the way you deployed.

Please check - are you serving media from Python? (all media should be served by a webserver directly)

Is your system swapping memory?

Initial startup - just the first hit will take longer due to compilation and determination whether you changed media, currently we do it by calculating hash of the content of the media dirs, there may be a faster way to do it. If you have multiple processes - each will consume extra time on response to the first web request.

Evgeny's avatar
13.2k
Evgeny
updated 2011-11-25 10:51:11 -0500, answered 2011-11-25 08:16:55 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments