Link to home
Start Free TrialLog in
Avatar of zizwce
zizwce

asked on

Reduce html file in dreamweaver

I have quite big html index. So how do i reducing the size of the file without delete the images or text. Is there anyway that we can do without delete the images?

TQ
Avatar of webwoman
webwoman

No. If you don't want to delete anything, you can't make it any smaller.

Why is your file so big? How did you create it?
Avatar of zizwce

ASKER

I created using DW. I have quite a lot of images and text link.
Avatar of zizwce

ASKER

I need all the images and text links in the file. It's so important to me.
If you don't want to delete anything, how would you expect it to get smaller?
Avatar of zizwce

ASKER

Maybe there is a software or the way that can reduce the html file.
No. There's not. It's text. You can't zip it or the browser can't read it.

Either redo it, take things out, or live with it.
Zizwce - There IS some software which will reduce the size of an HTML file, can't remember it's name, but will try and find out and report back.

All it does is to remove all the space that DW puts in to make you code readable. it's useful too, to protect your code to some degree, making slighty harder to hack a file formatted in this way.
Back again. It's called "HTML Shrink" and available here:
http://www.leafdigital.com/Software/HTMLShrink/HTMLShrink10.exe

Typically it will shrink an HTML file by 10% - not massive but if the file is large it will lose you a few precious bytes!
An HTML file is rarely that large. Pulling out all the spaces means that it's impossible to edit later.

If your HTML file is that large (over 20k), it's too big -- break it up into multiple pages. And even 20k is too big for a main page, which typically gives an overview and links -- not everything you want to show.
I agree Webwoman, but the questioner asked how to reduce the HTML file without delete the images or text.

HTML Shrink will do this. Also many WYSIWYG editor's will restore the formatting, then you edit and re-shrink if necessary.

I also agree that 20K (for example) is to large for an Index page. And whilst your comment on breaking up a main page is good general advice, there may be good reasons why the page is this size, we don't know the circumstances or environment. On an intranet for example a 20k overhead could very easily be negligable.
Exactly... and if it's on an intranet (and even if it's not) 20k isn't a long download.

So, zizwce, WHY do you think the page is 'too large'? I suspect it may be nothing to do with the actual HTML, but more with the images/layout. Do you have anything we can look at? That would be much more helpful.
I agree again Webwoman, some feedback from the questioner at this stage might be useful ;-)
I think what you really is talking about is minimizing the time the page takes to load. If so,then it's probably the images who steal seconds. You don't neccecarily have to get rid of them, ther eare several programs which will help you optimize the size of them. PaintShop Pro from www.jasc.com is one.

Regards, MHQ
Good point MHQ. I would say, Macromedia Fireworks appears to have the best web optomizing features of all the major graphics packages, even Photoshop.

Additionally, the questioner could slice his/her images to improve the perceived loading progress of the page.

However, after all this good advice a response from the questioner would be more than appropriate at this time. Zizwce, where are you?
Avatar of zizwce

ASKER

Yes everyone,

I already tried software suggested by Bigstar but the program error when i run on it. What's happen?

Regarding reducing the images i already did it. It is still not enough. Maybe my html got an error. For your info my html just 100kb.

If your HTML file is 100k, it's way, way, WAY too big. Break it up. And in the meantime, put it somewhere we can look at it, since I suspect you're trying to do too much on one page -- is this your first try at web design?
Avatar of zizwce

ASKER

I already reducing it to 80kb now. It is still big and heavy for any connection. The best html for index is around below 40kb. What you think?
Avatar of zizwce

ASKER

I already reducing it to 80kb now. It is still big and heavy for any connection. The best html for index is around below 40kb. What you think?
Zizwce

Sorry you had a problem with "Html Shrink" I'm looking into this.

IO still think it would be better for you to let us actually see your Index file, and then let us suggest ways you may reduce it. Working blind like this, makes our suggestions less specific.
ASKER CERTIFIED SOLUTION
Avatar of webwoman
webwoman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm jumping in here :-)
To which extent are you using css? You *can* save lots of code if your html is filled with font definitions, bold, italics, colors etc over and over again.
--
klykken
klykken - from what little the questioner gives away, I think that it is images that contribute to this document's bulk. However seeing the example would help us all with the great deal of guess work we've been doing these last couple of months.
And they obviously don't understand how HTML works...
"So how do i reducing the size of the file without delete the images or text."

There AREN'T any images in HTML. I suspect this is a Word person who doesn't comprehend what they're doing. I also suspect that this is a humongous page that should really be 3+ pages, but they don't know how to make links between them.

I also suspect that if they've been checking this, they don't like what they're hearing and won't admit that they don't know what they're doing. ;-)
i tihnk webwoman might be right on the spot, but I leave it for zizwce to post a comment here and prove us wrong
It's been 4 months... I doubt they're coming back. ;-)
prolly not
zizwce hasn't commented in over three months - be nice if he/she did!
Avatar of zizwce

ASKER

Yes. I do look at the answers and the winner goes to webwoman. Thanks guys for your support.

ziz  
zizwce,
if webwoman is your 'winner', please accept one of her answers as a solution so that we can file this question.
--
klykken
Avatar of zizwce

ASKER

I already accepted one of her answer. Redoing the page. TQ
Thanks!
you worked hard for that one WebWoman ;-)
Avatar of zizwce

ASKER

She's Cool.