Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Huge amount of empty space, and YSlow


  #1  
Old May 2, 2009, 03:51 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Ever look at your source code? I've noticed for a while now that there is a tremendous amount of empty white space in my Wordpress pages. I don't know if it's the theme or just built in to Wordpress, but it bothers me. I've been doing HTML since Tim Berners-Lee was a pup, and I remember always hearing that it wasn't "proper" coding to leave lots of white space, because the browser actually has to "read" it as it renders the page. Makes sense, but I'm not sure if it matters anymore. That was in the days of dial-up (remember that, boys and girls?), and maybe it's not a significant problem now.

But I did look at my Google Analytics visitor data, and there are still some poor souls on dial-up accessing my site. Even DSL can be pretty slow, so I hate to make the site load any slower than necessary. And the code looks untidy to me. All the CSS at the top also bothers me, but I"m not sure I should remove that and call it separately

I also ran YSlow, and was told I'm running 11 external javascripts which should be combined. I don't know how to do that with Wordpress except run a plugin.

It also says I have 47 separate components that are not on CDN, whatever that is...

There are other areas where I got F or D grades, but they seem to be part of Wordpress, nothing I'm doing wrong.
  #2  
Old May 4, 2009, 10:25 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
The white space is caused by both Atahualpa and Wordpress. It is supposed to improve the readability of the code. The possible savings through no white space are very, very small, especially with a huge site like yours. CDN means content distribution network, it usually costs thousands of dollars and is used by sites like amazon.com

Ask your host to enable mod_deflate or gzip on your hosting account. (Actually, insist...)

That will cut the HTML of your homepage from 65 KByte to ~20KByte and do the same with all extra JS and CSS files (reduce size of all text based files to 20-25 %). Huuuge savings and it's easy for the host to do. It'll just cost a little bit of CPU resources but not much really.

It's not enabled on your host, I did not even think about that.
  #3  
Old May 5, 2009, 05:18 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
OK, thanks. I'll ask about mod_deflate or gzip.

I've noticed the white space issue on other sites, too. It doesn't make the code easier to read when you have to scroll many screens from one line to the next!

Have a couple of lines between different elements would be useful, I think.

Last edited by paulae; May 5, 2009 at 06:04 AM.
  #4  
Old May 5, 2009, 11:06 AM
js9600
 
29 posts · Dec 2008
Those behind YSlow has a Yahoo Group where people expand on settings and advice, some from experience. Like CDN not being that relevant to most users. Check the thread "How many "rules" are really necessary?" for example.

New Yslow 2.0b3 out btw. 10 times better than the old. You can make own rules now for example, dump CDN may be.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eliminating empty lines and spaces from HTML output? gesman New Versions, & Updating 0 Jul 13, 2009 01:00 PM
[SOLVED] Excerpts have huge amounts of space between them. V.3.2 and WP 2.8 hankphone Excerpts, Read more, Pagination 3 Jun 24, 2009 08:40 AM
Show empty categories olsonsp4c Page & Category Menu Bars 2 Apr 22, 2009 10:41 PM
[SOLVED] Category menu: show empty categories perdox808 Page & Category Menu Bars 2 Apr 8, 2009 09:59 PM
All supplied graphics disappeared. Huge thanks from a Newbie for your help. tpatpa Atahualpa 3 Wordpress theme 2 Feb 28, 2009 11:46 AM


All times are GMT -6. The time now is 06:48 AM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.