homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Accessibility and Usability
Forum Library, Charter, Moderators: ergophobe

Accessibility and Usability Forum

determining page size of dynamic pages?
help with page size determination

 4:54 am on Jan 14, 2008 (gmt 0)

I've got a couple WordPress sites that I've been optimizing with themes and plugins. I'm hosted on a fast server with low CPU loads. I have a couple static websites on this server that perform fine: Click an internal link, and the resulting page refresh is fast. But my WordPress sites (two different sites using mostly the same plugins but different themes) have page load time problems. Some times they'll load in a second or two. Other times you may have to wait five or ten seconds to get a page! (I am using the WP-Cache plugin, so this shouldn't be a server issue for page generation.)

1) I was thinking that page size may be an issue, but WordPress does a dynamic page generation. I don't know how to find out what that size is. Can anyone assist?

2) Any other thoughts or experience as to why my pages are loading slow, or help with troubleshooting?





 6:58 am on Jan 14, 2008 (gmt 0)

...but WordPress does a dynamic page generation. I don't know how to find out what that size is. Can anyone assist?

If you only want/need to find the size of a few pages, a default install of the Opera browser might help as it has a 'progress bar', which you can position via Tools \ Appearance \ Toolbars \ Progress Bar

It shows Document Size, Image Count, and 'Download Speed'

Note: this info disappears once the page is fully downloaded... and would probably be easier to read on a slow dial-up connection


 2:06 pm on Jan 14, 2008 (gmt 0)

I have a WP site that is zippy as all git-go (I'm not allowed to link to it here). The difference came when I switched ISPs. I have a friend who's site generated bigger pages than mine, yet loaded three times as fast.

I got a VPS on his ISP, and it has sped up my WP quite a bit. Maybe it's the Apache install.

Administering the site is still slow, but nowhere near as slow as it was. WP is a big fat pig; especially if you use a few plugins. Some people throw every plugin they can find into their installs. Each plugin costs you.

I haven't had much luck with WP-Cahce in my install. I have several pages that actually get screwed over by the caching, and I couldn't easily except them. I don't use it, and the site is really zippy.

Here's what I do:

1) I use a decent ISP with a fast LAMP.

2) I only use the plugins that I ABSOLUTELY NEED.

3) I put code into my header.php or pluging wp-head handler that prevents loads of things like the Google Maps API (REALLY SLOW) unless the page in question needs it.

4) I "scrub" my output, scripts and styles with a "cleaner" that strips out cruft like comments (in CSS and JS), multiple spaces and indents.

5) I use the "ob_" functions [us2.php.net] to deliver compressed content.

It makes it quite bearable for me.


 1:58 pm on Jan 15, 2008 (gmt 0)

...but WordPress does a dynamic page generation. I don't know how to find out what that size is. Can anyone assist?

A previous user (lavazza), suggested the Opera progress bar. Have you tried Firefox? Look for "page info" at the bottom of the menu produced when you right-click anywhere on a page. There's quite a lot under the "General" tab and I think the "Size" feature is about right - although I can't guarantee it. The values seem close to what I'd expect for my WordPress sites as previously my site used static pages.

As an example, this page in the forum (as I type) shows as 10.09 kB (10,332 bytes)


 2:26 pm on Jan 15, 2008 (gmt 0)

The answer is PHP's ob_ (output buffer) functions [us2.php.net]. These allow you to trap the entire page output and do what you will with it.

I use these all the time to optimize my output.


 4:58 am on Jan 28, 2008 (gmt 0)

In my troubleshooting this problem, I found these utilities:

Web Page Analyzer:

I used some of the techniques mentioned here to find my dynamic page size. They didn't work as accurately as I like, or give me very much information. This tool does. Even recommends where your pages need fine tuning, and what kind of tuning they need. (I found out, for example, I'm probably loading too much javascript).


It's a plugin for FireFox. Allows you to watch pages load in real-time, and allows you to view code in real time as well. Gives readouts for KB loaded, and the time it takes to load every aspect of the page. Perfect for what I needed.

And for those interested, I did eventually find the problem: It was partially the graphics on my pages - I had a bunch of JPGs that weren't compressed very well. I redid the compression on all my graphics and cut my page load times almost half.

The other part of the problem was that my site was on an underpowered server - as my site grew in popularity (2000+ uniques per day or so), it would also get spidered, often my multiple spiders at once. During those times, the dynamic page generation would kill the memory on the server and cause a slowdown. My host moved me to a heftier server.

Problems are solved.

Thanks for the help, everyone!


 5:59 am on Jan 28, 2008 (gmt 0)

web developer 1.1.4 will give the size of the html and each of the images, css, js, etc and the total size of all the pieces/parts...


 6:01 am on Jan 28, 2008 (gmt 0)

welcome to WebmasterWorld [webmasterworld.com], mdr23!

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Accessibility and Usability
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved