Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
display the size of a page?
i can’t find a plugin to do this, i don’t know if it’s even possible. but is it possible to display the size of the page?
“This page is 2 kb”
i know the Web Developer toolbar can do it ha.
Offline
Re: display the size of a page?
Impossible not. You could use some PHP class, like this one, Web Page Size Calculator
Remember that counting the real page size will slow the page loading majorly. Also the page size is different than the HTML source code size (there are images, CSS-files etc) therefor ie. 2 kb is quite small size for page webpage ;)
Last edited by Gocom (2008-07-04 04:11:26)
Offline
Re: display the size of a page?
thanks. that looks like a hefty plugin. is it all run server side, or does the user take the hit on running that at all?
i’m interested in this feature for my mobile site so the user knows how hard i hit them
Offline
Re: display the size of a page?
mrtunes wrote:
thanks. that looks like a hefty plugin. is it all run server side, or does the user take the hit on running that at all?
i’m interested in this feature for my mobile site so the user knows how hard i hit them
That is PHP class, so it’s fully server side. It must be serverside, it could also be made with JavaScript, but because it’s mobile site, if you mean mobile as wap, it must be server side. Some phones won’t support JS, most cases it’s disabled and advanced script kinda won’t work at all.
Offline
Pages: 1