Clean up FP code?

G

Guest

I just saw this on a website and was wondering if you experts could comment
on whether "cleaning up" FP code is advisable b/c of download time.

*******
Clean Up Microsoft FrontPage Pages

Microsoft FrontPage is a popular web design program for those just learning
web design. Unfortunately, FrontPage also adds a lot of unneccessary code
(also referred to as "code bloat") which can add to the download time.

You can use this clean up tool to remove all the excess code from FrontPage
generated pages. This will result in quicker download times for visitors, as
well as making much neater source code.
******

Thanks,
Beverly
 
C

Chuck Davis

Beverly-Texas said:
I just saw this on a website and was wondering if you experts could comment
on whether "cleaning up" FP code is advisable b/c of download time.

*******
Clean Up Microsoft FrontPage Pages

Microsoft FrontPage is a popular web design program for those just
learning
web design. Unfortunately, FrontPage also adds a lot of unneccessary code
(also referred to as "code bloat") which can add to the download time.

You can use this clean up tool to remove all the excess code from
FrontPage
generated pages. This will result in quicker download times for visitors,
as
well as making much neater source code.
******

Thanks,
Beverly

Dangerous snake oil.
 
T

Thomas A. Rowe

Could result in never being able to edit the page again in FP.

You can avoid the so called "code bloat" by not using Themes, FP Navigation, FP2003 Behavior
(JavaScript), VML Graphics, FP Database components, instead use standard text hyperlink, single
image hyperlinks, hand code your ASP, etc.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Trevor L.

Beverly,
I have read on this newsgroup and elsewhere about FP producing bloated code.

Having used FP and then worked on the code it produces, that may well be
true. For example styles, fonts etc, may be specified for each element
rather than for a group of elements. The only way around this would be to
eyeball the code and change it manually

One other place that may help is http://validator.w3.org/ which will check
the code (HTML or CSS) on a website for validity against the W3C standards.
This won't remove bloated code, however, and if the code was generated by FP
and used unchanged, it is unlikely that it would not validate. I just throw
this in for what it may be worth - my $AUS0.02 :))
--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
G

Guest

Thanks for the validator site... It gave me an error that my document had no
doctype declaration and that this is mandatory for current markup languages.
Frontpage starts my code with:

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:blush:="urn:schemas-microsoft-com:blush:ffice:blush:ffice"
xmlns="http://www.w3.org/TR/REC-html40">

but it appears there's supposed to be something like this before:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


Does FP not insert this for some reason or is there something I should do?

Thanks,
Beverly
 
S

Steve Easton

It's something you should do because you need to determine the proper type to use with your pages.
The most commonly used one is this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

You should also add this ( or the proper equivilent ) if it's not already there:"

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Thomas A. Rowe

FP has no way of know what DOCTYPE you would want to use. Because if you specify a DOCTYPE then you
have to make sure that all coding on the page meets that requirements of the specific DOCTYPE.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
J

Jim Scott

It's something you should do because you need to determine the proper type to use with your pages.
The most commonly used one is this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

You should also add this ( or the proper equivilent ) if it's not already there:"

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Is that the same as charset=windows-1252 ?
 
G

Guest

So do you have to manually go in and add this to every website code or does
it really even need to be there? Could it not load properly on someone's
machine because it's missing?

Thanks,
Beverly
 
T

Thomas A. Rowe

It really only applies if you what to validate your pages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top