views:

48

answers:

3

I saw that facebook is doing that. if you look in the chrome inspector they keep on adding "html documents elements" when you navigate on diferent pages.

I also noticed that google dose this also.

My intention is to make my PHP+DOM load faster under 200 ms from website backed.

It's some web server thing?

I'm using php with apache.

Thanks.

A: 

I'm not sure how Facebook or Google do what you want, but some options here: http://en.wikipedia.org/wiki/Comet_(programming)

sarnold
A: 

It's limited in browser support, but WebSockets are technically not Ajax and designed to be very fast because it doesn't have the whole HTTP header overhead.

But there are other ways to improve site-loading performance before resorting to something like this. Look at Google Page Speed, Yahoo's ySlow and other tools to find what bottlenecks exist.

Christophski