We help IT Professionals succeed at work.

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
Comment
Watch Question

Commented:
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?

Author

Commented:
I created using DW. I have quite a lot of images and text link.

Author

Commented:
I need all the images and text links in the file. It's so important to me.

Commented:
If you don't want to delete anything, how would you expect it to get smaller?

Author

Commented:
Maybe there is a software or the way that can reduce the html file.

Commented:
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.

Commented:
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.

Commented:
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!

Commented:
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.

Commented:
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.

Commented:
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.

Commented:
I agree again Webwoman, some feedback from the questioner at this stage might be useful ;-)
MHQ

Commented:
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

Commented:
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?

Author

Commented:
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.

Commented:
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?

Author

Commented:
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?

Author

Commented:
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?

Commented:
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.
Commented:
We definitely need to see this... and you're going to have to be open to redoing the page, because unless you are, I doubt anything is going to make it better.

Which is pretty much what I said in the first place... ;-)

Commented:
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

Commented:
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.

Commented:
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. ;-)
MHQ

Commented:
i tihnk webwoman might be right on the spot, but I leave it for zizwce to post a comment here and prove us wrong

Commented:
It's been 4 months... I doubt they're coming back. ;-)
MHQ

Commented:
prolly not

Commented:
zizwce hasn't commented in over three months - be nice if he/she did!

Author

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

ziz  

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

Author

Commented:
I already accepted one of her answer. Redoing the page. TQ

Commented:
Thanks!

Commented:
you worked hard for that one WebWoman ;-)

Author

Commented:
She's Cool.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.