Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 06-13-2006, 06:47 PM   #1 (permalink)
Who You Crappin?
 
Derwood's Avatar
 
Location: Everywhere and Nowhere
Unusually large html file

Can someone explain why this page:

www.simleaguebaseball.com/history/allstar.htm

Is nearly 1.5 MB in size while this page:

www.simleaguebaseball.com/all_stat.htm

is only 189k?

Both are all text. The first has some color formatting and a few tables, but it seems unusally large. Can someone check the page source and tell me if there is something weird inbedded in it?
__________________
"You can't shoot a country until it becomes a democracy." - Willravel
Derwood is offline  
Old 06-13-2006, 07:03 PM   #2 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
There not both text, the first is html, the second one is just text in an htm file. view the source and you can see.
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
Old 06-13-2006, 07:09 PM   #3 (permalink)
Everything's better with bacon
 
SaltPork's Avatar
 
Location: In your local grocer's freezer.
The first one was also created with Word. Word has a nasty habit of seriously bloating HTML with a bunch of extra crap.
__________________
It was like that when I got here....I swear.
SaltPork is offline  
Old 06-13-2006, 08:10 PM   #4 (permalink)
The Computer Kid :D
 
Location: 127.0.0.1
They're two totally differnt pages. Just look at the crappy color formatting.
MikeSty is offline  
Old 06-14-2006, 05:04 AM   #5 (permalink)
Who You Crappin?
 
Derwood's Avatar
 
Location: Everywhere and Nowhere
right, I did indeed edit the first one with Word because every time I tried cutting and pasting text from a notepad document into it in Frontpage, the formatting went away. Is there any way I can "un-bloat" the page?
__________________
"You can't shoot a country until it becomes a democracy." - Willravel
Derwood is offline  
Old 06-14-2006, 05:29 PM   #6 (permalink)
Tilted
 
Un-bloat and KEEP your MS Word formatting ? Not likely.

The reason MS Word makes it so huge is their heavy use of XML for all the pretty classes they can use for the formatting and such. problem is, Microsoft LOVES to specify the classes used, and every last bit of formatting on each and every individual cell, or if they are being conservative, each and every row. Most coders will simply apply a format to the entire table, and only change the one atribute they want for that row, such as a colour, rather than re-specifying the font, size, colour, spacing, etc for each and every cell.

The good news: You can get the HTML version to have the exact same pretty formatting without all the Microsoft Bloat.

The bad news: You cannot just cut and paste from the finished MS Word you have, into an HTML format.

If you had made this project from the start in Dreamweaver, or Adobe GoLive, the formatting would all be there and it would work great, but now you have to pretty much re-invent the wheel to put all that formatting into the existing document. The good part is you have the raw table already that you can just dump into Dreamweaver or GoLive, and just do the formatting in one of those programs.

Man I hate Microsoft, apparently their Word Webpages now include such things as the name of the person the computer was registered to (M***a K***g) and the fact that it was done on a Dell computer. Why the heck would anyone need to include that sort of info on a webpage ?

Last edited by 3Z3VH; 06-14-2006 at 05:37 PM..
3Z3VH is offline  
Old 06-14-2006, 06:24 PM   #7 (permalink)
Who You Crappin?
 
Derwood's Avatar
 
Location: Everywhere and Nowhere
right. I built the page using MS Frontpage, but for some reason, cutting and pasting formatted (ie spaced out) Courier New text from Notepad (the boxscores) into Frontpage kept losing the formatting and using MS Word was the only way I could get it to work. Had I only known...
__________________
"You can't shoot a country until it becomes a democracy." - Willravel
Derwood is offline  
Old 06-15-2006, 04:10 AM   #8 (permalink)
Delicious
 
Reese's Avatar
 
Those non breaking spaces(&nbsp:) are killer too. They are basically a 6 byte equivalent of a 1 byte space. I don't think you need them at all since you're using the Pre(pre-formatted text) tags. (I'd open it in notepad and edit->replace all of them with a space. Do it on a copy just in case it messes up the formatting too much to fix. It shouldn't though)

Dreamweaver has a clean up Word HTML command that will drastically reduce the size. I can't tell you by how much because opening the file in dreamweaver crashes my computer. I've seen it reduce the size by over half and with that much word formatting I bet it'll reduce it by at least that much.

Also.. Anyone not using the exact same font, font size, screen resolution etc as you isn't going to see those tables aligned correctly. I don't know if they're aligned for anyone else but for me it's off. If you're wanting compatibility with other computers you might want to put those in real tables. It's not going to be a fast fix. Consider it a learning experience. I know I've spent plenty of time fixing my own HTML.

(Try to overlook grammar, typos, and all other mis-information. It's VERY, VERY late.. or early..)
__________________
“It is better to be rich and healthy than poor and sick” - Dave Barry
Reese is offline  
Old 06-15-2006, 06:02 AM   #9 (permalink)
Who You Crappin?
 
Derwood's Avatar
 
Location: Everywhere and Nowhere
Sadly, I don't have Dreamweaver. And I won't unless it's free somewhere. I'm stuck with MS Frontpage.
__________________
"You can't shoot a country until it becomes a democracy." - Willravel
Derwood is offline  
Old 06-15-2006, 08:01 AM   #10 (permalink)
Insane
 
Location: Vermont
Try NVU.
Its open source and free.
I make no promises if you'll like it, or it's what you want, but it doesn't hurt to know about the software out there.

Last edited by RAGEAngel9; 06-15-2006 at 08:02 AM.. Reason: Bah spelling!
RAGEAngel9 is offline  
Old 06-22-2006, 06:29 AM   #11 (permalink)
Who You Crappin?
 
Derwood's Avatar
 
Location: Everywhere and Nowhere
I went back and rebuilt the page by basically copying all the "formatted" text into Notepad, then copying and pasting it into a new page.

The exact same content went from 1.27 GB to 330k!

Thanks all!
__________________
"You can't shoot a country until it becomes a democracy." - Willravel
Derwood is offline  
 

Tags
file, html, large, unusually


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 02:48 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360