Where is classic.jar packaged?

Discussion about official Mozilla Firefox builds
Sipaq
Posts: 262
Joined: November 5th, 2002, 1:25 am
Location: Germany
Contact:

Where is classic.jar packaged?

Post by Sipaq »

Hi!
Since classic.jar still carries a lot of bloat within (all the messenger and composer stuff for example), I wanted to create a patch to eliminate this bloat.

But the two relevant files I found (mozilla/ browser/ base/ jar.mn and mozilla/ toolkit/ skin/ win/ jar.mn) don't mention these files at all. But they exist (unfortunately).

By fine tuning my own classic.jar I managed to tweak it from 451kb down to 220kb. This results not only in decreased disk footprint, but also in reduced memory footprint and reduced startup time.

So if anybody can help, feel free to do so.
Sunbird/Calendar project webmaster
Visit the Calendar developer blog
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Re: Where is classic.jar packaged?

Post by daihard »

Sipaq wrote:By fine tuning my own classic.jar I managed to tweak it from 451kb down to 220kb. This results not only in decreased disk footprint, but also in reduced memory footprint and reduced startup time.

So if anybody can help, feel free to do so.

You mean, by deleting directories like skin/classic/editor and skin/classic/messneger, right? I deleted those two and reduced the size from 497,507 bytes to 372,062 bytes (this is the Linux version). Any other directories that you can safely delete?
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
User avatar
willll
Posts: 2577
Joined: November 30th, 2002, 11:39 am
Location: Washington, DC

Post by willll »

i BELIEVE (that means i am NOT sure) that all files in skin/classic/navigator can be deleted EXCEPT for pageInfo.css. there is probably a whole lot of other stuff that can be removed, but i dont know what it is.
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Post by daihard »

willll wrote:i BELIEVE (that means i am NOT sure) that all files in skin/classic/navigator can be deleted EXCEPT for pageInfo.css. there is probably a whole lot of other stuff that can be removed, but i dont know what it is.

Thanks willll. I'll do some more experiments to figure out how much further I can cut 'corners'. :)
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

It's always fun when it seems to start right, but then you go to open a preferences panel, and it asks you to save to disk. That happened when I removed Communicator.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Post by daihard »

alanjstr wrote:It's always fun when it seems to start right, but then you go to open a preferences panel, and it asks you to save to disk. That happened when I removed Communicator.

That's surely an encouragement... :mrgreen:
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

I wish there was a good guide to theming that explained the minimal requirements.

I've said that sentence several times. I hate that there are so many redundancies.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
User avatar
willll
Posts: 2577
Joined: November 30th, 2002, 11:39 am
Location: Washington, DC

Post by willll »

i would guess you could deleted any icon that looks mozillish and not quteish
edit: i removed all image files outside of browser and global. now my classic.jar is down to 254 KB and everything seems to wrok fine
User avatar
gorn
Posts: 59
Joined: January 1st, 2003, 1:17 am
Location: 127.0.0.1
Contact:

Post by gorn »

this wasn't on phoenix but some other programs, but still related:
a long time ago i did some tests on a mac where i deleted resources from the resource fork trying to improve it. the disk footprint went down, the memory footprint went down, but the startup time went up! one of the things i deleted was the startup screen image, so it displayed the window without an image in it. my theory is that it took more time trying to get the image and fail than just get it and display it. still seems a little odd to me, but eh it was a mac.

i'd say don't delete just backup the stuff. reinstalling is a pain.
Dunt Dun Duh...
GoRN To The Rescue,
Yet Again!
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Post by daihard »

gorn wrote:a long time ago i did some tests on a mac where i deleted resources from the resource fork trying to improve it. the disk footprint went down, the memory footprint went down, but the startup time went up! one of the things i deleted was the startup screen image, so it displayed the window without an image in it. my theory is that it took more time trying to get the image and fail than just get it and display it. still seems a little odd to me, but eh it was a mac.

Weird things can happen, I guess...

BTW, I like your location. :)
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
Sipaq
Posts: 262
Joined: November 5th, 2002, 1:25 am
Location: Germany
Contact:

Re: Where is classic.jar packaged?

Post by Sipaq »

daihard wrote:You mean, by deleting directories like skin/classic/editor and skin/classic/messneger, right? I deleted those two and reduced the size from 497,507 bytes to 372,062 bytes (this is the Linux version). Any other directories that you can safely delete?
I'm on Windoze, so I cannot confirm if this works under Linux, but all of the following directories and files can be safely deleted IMO:

All of skin\classic\editor
All of skin\classic\messenger
All of skin\classic\navigator except pageinfo.css
All of skin\classic\global\console
All of skin\classic\global\filepicker
All of skin\classic\global\splitter
All of skin\classic\communicator\taskbar
All of skin\classic\communicator\profile
All of skin\classic\communicator\cookie
All of skin\classic\communicator\brand
All of skin\classic\communicator\bookmarks

All gifs in skin\classic\global\icons

In skin\classic\global\menu:
menu-arrow-disabled.gif
menu-arrow-hover.gif
menu-arrow.gif

In skin\classic\global:
preview.gif

In skin\classic\communicator\icons:
btn1.gif
lock-broken.gif
lock-insecure.gif
lock-secure.gif
offline.gif
online.gif
search-act.gif
search-hov.gif
search.gif
turbo-systray.gif

It is possible that there are more redundancies, especially in the many css-files. I only mentioned files, which I strongly believe to be redundant. But anybody who wants to experiment should do so and post his results here.
Sunbird/Calendar project webmaster
Visit the Calendar developer blog
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Re: Where is classic.jar packaged?

Post by alanjstr »

Sipaq wrote:All gifs in skin\classic\global\icons

In skin\classic\global\menu:
menu-arrow-disabled.gif
menu-arrow-hover.gif
menu-arrow.gif

In skin\classic\global:
preview.gif

In skin\classic\communicator\icons:
btn1.gif
lock-broken.gif
lock-insecure.gif
lock-secure.gif
offline.gif
online.gif
search-act.gif
search-hov.gif
search.gif



I'm gonna probably disagree with most of the ones that I quoted. For example, skin\classic\global\icons would be the images used on error dialogs, if I recall correctly.
Last edited by alanjstr on January 14th, 2003, 9:59 am, edited 1 time in total.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

[skin/classic/]global/filepicker images used under Linux, so they stay as well
User avatar
David James
Posts: 1321
Joined: November 4th, 2002, 10:19 pm
Location: Ottawa, Ontario, Canada
Contact:

Post by David James »

Pinball-Firefox maintainer.
http://david.jamesnet.ca/
Debian Sid, KDE 3.3
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Post by daihard »

cdn wrote:[skin/classic/]global/filepicker images used under Linux, so they stay as well

Alan, cdn, Sipaq:

Thanks all for the great tips. I will try to trim the file down based upon your advice and see how much space I can save without breaking something. I'll post the results ASAP. :)
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
Post Reply