Forum Moderators: open

Message Too Old, No Replies

Big gaps in the source code

         

zonkd

8:11 am on Jul 26, 2005 (gmt 0)

10+ Year Member



Be grateful for a professional opinion on why the independent newspaper website spaces out their code so extravagantly? <SNIP>

The pages seem pretty heavy at the best of times - they like to fill each webpage which may or may not be a good thing. (Smaller amounts and going from page to page seems to me to make it more encouraging for people to read.)I don't suppose the gaps adds to the slowness.(?)

I looked to see the secret of their option of single and double columns and the source shows this madly gappy page. I've noticed this before there - and on quite a few sites - but never anything quite like this. Anyone know the philosophy behind it, please?

[edited by: BlobFisk at 9:02 am (utc) on July 26, 2005]
[edit reason] No URLs please! See TOS [webmasterworld.com] [/edit]

tedster

9:02 am on Jul 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'll bet it's not intentional at all - just the sloppy results of a cobbled together Content Management System and failure to trim lots of spaces and line breaks.

victor

10:24 am on Jul 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd agree with tedster.

it's relatively clean code (few validation errors) and that is probably more important.

Nearly 50% wasted whitespace in a single page is exceptional....

length? read [the url in question]
== 120260
length? trim/lines read [the url in question]
== 62659

....but that is likely to be compressed on many of its voyages and cache stopovers, so the total throughput may not be affected greatly.

They may be being charged double for HTML served by their ISP, but that's also a relatively small percentage of their total bandwidth -- think of the bandwidth for images.

Still, that could add up to a tidy small sum over a year -- why not tell them, and ask for 50% of the saving in cash?

zonkd

7:51 am on Jul 27, 2005 (gmt 0)

10+ Year Member



Thanks very much, tedster and victor.

I really took it to be some ruse.

It's almost unbelievable that an organisation that concentrates so much on the aesthetics of layout should be so unaware of what's behind the scenes. Like a restaurateur who doesn't know the kitchen's active with cockroaches. (Well, in a way.)

Cheers, gentlemen.

g1smd

10:26 am on Jul 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Conversely I have seen scripted sites where the developer obviously didn't know what '\n' is used for, and hence the whole page was just a few lines in the source code: some of them tens of thousands of characters long.

zonkd

9:36 am on Jul 29, 2005 (gmt 0)

10+ Year Member



:)