Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-04 01:46:26

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#2 2008-07-04 04:06:20

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#3 2008-07-04 05:50:19

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#4 2008-07-04 07:41:53

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB