This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft Publisher > August 2007 > Trim out MS-Fat from Pub HTML





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Trim out MS-Fat from Pub HTML
Electric Monk

2007-08-06, 3:15 am

Hi all.
I'm sure this has been touched on before, but I can't find a
definitive answer on the newsgroups or microsoft download site.
Is there a tool or methodology that will help me trim all the excess
code from a web page I created in Publisher 2003? The page itself is
static and has no imbedded objects, yet still weighs in at 595k.

TIA

Brett Monten

Rob Giordano \(Crash\)

2007-08-06, 3:15 am

The answer is no...well maybe you could if you were a supreme code guru with
a lot of time on your hands...but if you were you'd not be using Publisher
to build web sites.

You is you understood...not you personally.



--

Rob Giordano
Microsoft MVP - FrontPage





"Electric Monk" <google@theveine.com> wrote in message
news:1186372101.677576.126310@z24g2000prh.googlegroups.com...
| Hi all.
| I'm sure this has been touched on before, but I can't find a
| definitive answer on the newsgroups or microsoft download site.
| Is there a tool or methodology that will help me trim all the excess
| code from a web page I created in Publisher 2003? The page itself is
| static and has no imbedded objects, yet still weighs in at 595k.
|
| TIA
|
| Brett Monten
|


DavidF

2007-08-06, 6:17 pm

Brett,

Publisher does not produce the most efficient code, but you can take steps
to minimize it.

Open you Pub file > Tools > Options > Web tab and uncheck "Rely on VML..."
and "Allow PNG...".

If you do have any images Reference: Compress graphics file sizes to create
smaller
Publisher Web pages:
http://office.microsoft.com/en-us/p...1266301033.aspx

When you are ready to produce your html output, use File > Publish to the
Web to produce filtered html. Don't do a File > Save As a web page in Pub
2003. That includes a lot of Office tags and is unfiltered and more bloated.

DavidF

"Electric Monk" <google@theveine.com> wrote in message
news:1186372101.677576.126310@z24g2000prh.googlegroups.com...
> Hi all.
> I'm sure this has been touched on before, but I can't find a
> definitive answer on the newsgroups or microsoft download site.
> Is there a tool or methodology that will help me trim all the excess
> code from a web page I created in Publisher 2003? The page itself is
> static and has no imbedded objects, yet still weighs in at 595k.
>
> TIA
>
> Brett Monten
>



Electric Monk

2007-08-06, 10:17 pm

Thanks to both. The office tags were the main problem, I think, and
publishing filtered helped a bit.

Brett

On Aug 6, 8:59 pm, "DavidF" <N...@nospam.com> wrote:
> Brett,
>
> Publisher does not produce the most efficient code, but you can take steps
> to minimize it.
>
> Open you Pub file > Tools > Options > Web tab and uncheck "Rely on VML..."
> and "Allow PNG...".
>
> If you do have any images Reference: Compress graphics file sizes to create
> smaller
> Publisher Web pages:http://office.microsoft.com/en-us/p...1266301033.aspx
>
> When you are ready to produce your html output, use File > Publish to the
> Web to produce filtered html. Don't do a File > Save As a web page in Pub
> 2003. That includes a lot of Office tags and is unfiltered and more bloated.
>
> DavidF
>
> "Electric Monk" <goo...@theveine.com> wrote in message
>
> news:1186372101.677576.126310@z24g2000prh.googlegroups.com...
>
>


DavidF

2007-08-06, 10:18 pm

You are welcome and thanks for posting back.

By the way, after making the changes, how big was the page?

DavidF

"Electric Monk" <google@theveine.com> wrote in message
news:1186441852.417231.79320@g12g2000prg.googlegroups.com...
> Thanks to both. The office tags were the main problem, I think, and
> publishing filtered helped a bit.
>
> Brett
>
> On Aug 6, 8:59 pm, "DavidF" <N...@nospam.com> wrote:
>



Electric Monk

2007-08-07, 3:16 am

The index.htm file went from 595kb down to 74kb, and the size of the
index_files folder reduced from 1.14mb to 732kb. The size of this
folder is mainly due to me creating a photo gallery page and not
cleaning it up yet (it still has the 10 or so sample pictures in it).

Looking at the HTML source, it's still pretty crappy, but I guess you
have to expect some compromise for having a milti-purpose user-
friendly code generator, don't you?

In answer to Rob's point about being able to code HTML, I can and have
done it before with several different tools, but wanted to build a
site quickly. I'd never used Publisher for this kind of thing before,
but I've seen what other Office products do when generating HTML, so I
shouldn't have been surprised.

thanks again.

Brett

DavidF

2007-08-07, 6:17 pm

Brett,

Thanks. I was curious to see some hard data. Publisher is a DTP that is in
essence is converting print formatted publications to html. The process is
very inefficient and results in a lot of code.

Though you unchecked "Rely on VML..." the coding engine still uses VML to a
degree. If you insert a print resolution, oversized image, Publisher will
make copies of the image in various formats and resolutions, with the goal
of rendering the best picture for whatever browser is used....with mixed
results....and a bloated index_files folder. Resizing and optimizing the
images for the web before you insert them into the publication and sizing
them at 100% gives you the best results. Or actually importing the images is
really the best, but that gets away from the goal of building the site
"fast".

You can compress the images significantly from within Publisher...the fast
if not the best way.

Reference: Compress graphics file sizes to create smaller
Publisher Web pages:
http://office.microsoft.com/en-us/p...1266301033.aspx


DavidF

"Electric Monk" <google@theveine.com> wrote in message
news:1186461347.524393.240760@x40g2000prg.googlegroups.com...
> The index.htm file went from 595kb down to 74kb, and the size of the
> index_files folder reduced from 1.14mb to 732kb. The size of this
> folder is mainly due to me creating a photo gallery page and not
> cleaning it up yet (it still has the 10 or so sample pictures in it).
>
> Looking at the HTML source, it's still pretty crappy, but I guess you
> have to expect some compromise for having a milti-purpose user-
> friendly code generator, don't you?
>
> In answer to Rob's point about being able to code HTML, I can and have
> done it before with several different tools, but wanted to build a
> site quickly. I'd never used Publisher for this kind of thing before,
> but I've seen what other Office products do when generating HTML, so I
> shouldn't have been surprised.
>
> thanks again.
>
> Brett
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews