General :  K-Meleon Forum
General discussion about K-Meleon. 
lightweight as possible
Posted by: km2
Date: February 16, 2011 10:18PM

If I always delete some def plugins, say:

\kplugins
favorites.dll
fullscreen
gestures.dll
history.dll
hotlist.dll
sessions.dll
update.dll
&
AccessibleMarshal.dll
newsfox.jar

Maybe there are something in components folder, that I don't need and may delete too?

Options: ReplyQuote
Re: lightweight as possible
Posted by: guenter
Date: February 17, 2011 01:22AM

Gorilla no baka experimented with it about two years ago.

http://kmeleon.sourceforge.net/forum/read.php?1,88049,88058#msg-88058

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 17, 2011 03:34AM

Many thanks, guenter.
Nice info there.

Options: ReplyQuote
Re: lightweight as possible
Date: February 17, 2011 04:00PM

Quote
km2
Many thanks, guenter.
Nice info there.

Have fun KM..

Remember that was just an experiment..I managed to create a 5 MB K-meleon but the speed was not THAT different.. Maybe Few Milliseconds but that`s it..
However i did learned something about the way K-meleon works... In the mean time i ditched windows for Linux..
I switched to Debian/Arch now and i do not really use K-meleon anymore...

Feel free to try and experiment.. It is a great way to learn..

PS:Make sure you post your findings in forum in a ordered manner so that ,you know..... 2 years from now on an other one could learn from your experience as well
Regards..

Your Simian

Gorilla No Baka


My favorite forums
http://www.graphixanstuff.com
http://www.closeprotectionworld.co.uk/index.php?referrerid=11530

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 17, 2011 07:11PM

Quote

Have fun KM..

Thanks, man.

Quote

I managed to create a 5 MB K-meleon but the speed was not THAT different..

That's not about speed. In K-M with speed all is ok, even on def settings, etc..
It's more about - just delete components that not need anymore. More clean, and controllable setup, always better.

Quote

i ditched windows for Linux..

Oh, Linux it's good. ;)

Quote

Feel free to try and experiment.. It is a great way to learn..

I am not expert in javascript console, etc.. And thats because I don't experiment at all or experiment just a little & more careful. components it's deep zone. smiling smiley

If I understand correctly,
info about /components files in the net something around 0. smiling smiley

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 18, 2011 08:45PM

Some info there..
www.mozilla.org/projects/embedding/howto/WhatYouNeed.html

Options: ReplyQuote
Re: lightweight as possible
Posted by: guenter
Date: February 19, 2011 07:53AM

Quote
km2
Some info there..
www.mozilla.org/projects/embedding/howto/WhatYouNeed.html

Nice find.

Quote
savarese.org
The Mozilla Project source code has contained a not very well publicized ActiveX control for many years. This ActiveX control allows you to embed the Mozilla Gecko HTML rendering engine and browser into your own Windows applications using the same API as the embedded MSIE control. In addition, you can embed the browser into any ActiveX host. Given that MSIE is able to host ActiveX controls, you can embed Mozilla inside of MSIE.

We all have used versions of this control. grinning smiley This widget was used to host MFCembed.exe the ancestor of K-Meleon (0.3-today) and last not least K-Meleon.

Somewhat dated info about the control and a usable download from K-Meleon 0.9 times.

You can install the 1.7.12 control and run e.g.K-Meleon 0.9 in it, if You add the needed K-Meleon specific parts. You can also compare the included files, that gives perhaps a more tangible view than a list. K-Meleon devs included all additional ./components/*.dll that were needed for a full fledged browser.

If You play with the 1.7.12 control: The control has some limitations AFAIRemember e.g. with Google maps. K-Meleon 0.9's chrome also had less errors than the one used in the sample.


Some basic Info from the guy at savarese.org that is quoted above & that created a recent version of the control.

Xulrunner is the succesor of the control, sort off.
But Xulrunner ./components/... contains also mail dll...

p.s. MFCembed was originally a little sample shell that hosted IE's html engine. smiling smiley

K-Meleon 1.x chromes were again internally shaped after ideas from the embed sample.

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 22, 2011 08:55PM

So.. Some little info.

/components
- - - - - -

accessibility.dll

Quote
(screen readers, screen magnifiers and voice dictation soft)
Executes in the software environment of the Gecko browser, to manage the program's runtime requirements.

appcomps.dll

Quote
(XUL-based view to display FTP directories)
The main function is the Web Accelerator. This accelerator pre-compresses text at the server side to approximately 4% of its original size. Also, the accelerator pre-compresses Flash executables and images to 30% and 12%, respectively.

necko2.dll

Quote
(HTML-based view to display FTP directories)
Make sure you are including the "necko2" DLL and XPT files. If you are able to download ftp files, but cannot show directories, you may be using the wrong FTP directory view. There are two different views to display FTP directories.
XUL-based and requires the "appcomps" dll.
HTML-based and requires only the necko2 dll. The network.dir.generate_html preference will make mozilla use HTML mode.
There have been reports that appcomps.dll is still needed, even with HTML displays... this is a bug that needs to be investigated further.

gksvgrenderer.xpt

Quote
(Scalable Vector Graphics)
Viewers such as the Adobe viewer.

mork.dll

Quote

Responsible for book marking sites and remembering Internet activities.
also contains web browser activity and logs them in its internal database (as a cookie).

oji.dll

Quote

Various visual representations, which can be in the form of numbers/seconds, filling bars, and others.
Created to refresh and enter a new Web page wherein bars or time rotations would be used to show its on-going execution. Together with other DLLs, the module determines the span of time the loading of a page might take.

pipboot.dll

Quote

Module acts as a relay point, which imports functions from other modules to embed features and protocols into the Web browser.
Its functionality borders on loading routines, protocols, and procedures during the execution of Firefox. It calls functions from other modules, including xpcom.dll, which allows the system to analyze and use the MD5 HASH of the application to be used. The nspr4.dll incorporates log procedures that allow the application to take note of the different transactions during application runtime. These can then be used for troubleshooting purposes.

uconv.dll

Quote

It is assigned to convert Japanese text into Unicode text and vice versa. Upon it's loading, it supports 12 various DLL files, all at entry point and related to the foreign character conversion.

wallet.dll

Quote

Enables multiple Mozilla based applications sharing the similar disk. Contains a core XPCOM file. Manages and maintains software within Mozilla's system setting of the actual framework.
Makes available practically all of the Gecko application's functionality as a component series, or as reusable inter-platform libraries, which are scripted from a Mozilla-based application, or accessed via the Web browser.

webbrwsr.dll

Quote

Enables the user to view or display text, images, music, videos, and other information that are commonly used in a web page.

xpc3250.dll

Quote

contains functions that allows synchronization and features to be integrated into the browser itself. This includes protocols and procedures for the performance of the browser in opening various sites on the Internet.

xpconnect.xpt

Quote

Allows code written in JS access and manipulate XPCOM components written in C++ and vice versa.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


/bin
- - -

mozctl.dll

Quote

ActiveX control.

AccessibleMarshal.dll

Quote

E-mail client and news reader.


/plugins
- - - - - -

npnul32.dll

Quote
(mozilla Default Plug-in)
Allows a user to gain easy access to info provided at numerous Web pages on multiple websites by just using a set of links.
Also functions in these following applications:

* Email clients - it uses plug-ins to decrypt and encrypt email
* Graphics software - it uses plug-ins to support file formats and process images
* Media players - it uses plug-ins to support file formats and apply filters
* Remote sensing applications - use plug-ins to process data from different sensor types
* Software development environments - use plug-ins to support programming languages.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


/components

appshell.dll ?
autoconfig.dll ?
chardet.xpt ?
dom_loadsave.xpt ?
embed_base.xpt ?
exthandler.xpt
gkplugin.dll ?

history.xpt ?
shistory.xpt ?

intlcmpt.dll ?
layout_base.xpt ?
locale.xpt ?
lwbrk.xpt ?
p3p.dll ?
perms.dll ?
plugin.xpt ? (npnul32.dll?)
pref.xpt ?
prefetch.xpt ?
rdf.dll ? *
transformiix.dll ?
txmgr.dll ?
txtsvc.xpt ?
typeaheadfind.dll ?
ucvmath.dll ?
unicharutil.xpt ?
universalchardet.dll ?
uriloader.xpt ?
webBrowser_core.xpt ?
webbrowserpersist.xpt ?
webshell_idls.xpt ?
widget.xpt ?
windowwatcher.xpt ?
xml-rpc.xpt ?

xpcom_ds.xpt
xpcom_io.xpt
xpcom_obsolete.xpt ?
xpcom_thread.xpt
xpcom_xpti.xpt

xppref32.dll ?
xuldoc.xpt ?


/bin
- - -

xpcom_compat.dll ?
sqlite3.dll ?

Options: ReplyQuote
Re: lightweight as possible
Posted by: caktus
Date: February 22, 2011 09:21PM

15 quotes in one post. That must be some kind of record.grinning smiley

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: lightweight as possible
Posted by: panzer
Date: February 22, 2011 11:49PM

Quote
Gorilla no baka
In the mean time i ditched windows for Linux..
I switched to Debian/Arch now and i do not really use K-meleon anymore...

You know that we have K-Meleon version made for Linux? cool smiley

Options: ReplyQuote
Re: lightweight as possible
Posted by: jsnj
Date: February 23, 2011 05:50AM

Quote
panzer
Quote
Gorilla no baka
In the mean time i ditched windows for Linux..
I switched to Debian/Arch now and i do not really use K-meleon anymore...

You know that we have K-Meleon version made for Linux? cool smiley

A specific linux version isn't necessary. With wine v1.3 the official KM releases work well, extensions included, albeit w/a few limitations & quirks, mainly aesthetic.



Edited 1 time(s). Last edit at 02/23/2011 05:51AM by jsnj.

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 27, 2011 12:34AM

some nice info..

developer.mozilla.org/index.php?title=Userdrool smileyiesi%2F%2FConfigure_options



Edited 2 time(s). Last edit at 03/20/2011 01:42AM by desga2.

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 27, 2011 12:38AM

Quote
km2
some nice info..

developer.mozilla.org/index.php?title=Userdrool smileyiesi%2F%2FConfigure_options

developer.mozilla.org/index.php?title=User: Biesi//Configure_options

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: February 28, 2011 02:42AM

bin/

AccessibleMarshal.dll
mozctl.dll
xpcom_compat.dll
- - - - - - - - - - - - - - - - - -
components/

mimetype.xpt
autocomplete.xpt
xpcom_obsolete.xpt
accessibility.xpt
accessibility-msaa.xpt
accessibility.dll
oji.dll (Open JVM Integration)
necko_viewsource.xpt
- - - - - - - - - - - - - - - - - -
plugins/

npnul32.dll

Deleted - tst - ok.

Options: ReplyQuote
Re: lightweight as possible
Posted by: Kahlos
Date: March 05, 2011 04:37PM

Okay well I did some of my own tests and I found k-melon latest stable release to be most lightweight. Removing the components as suggested did nothing to lower memory usage but obviously lowers the amount of disk space required.
I found the best method was to alter some of the settings, removing some interface elements but keeping the cache running, I managed to get it down to 15MB whilst watching a youtube video.

This link is to a pastebin which contains a little batch to auto remove the components listed below
K-Melon Components Prune Batch

Here is a list of all the components that could be removed according to the link to the other post:

accessibility.dll
accessibility.xpt
accessibility-msaa.xpt
appcomps.dll
appshell.dll
appshell.xpt
autocomplete.xpt
autoconfig.dll
autoconfig.xpt
caps.xpt
chardet.xpt
chrome.xpt
composer.dll
composer.xpt
compreg.dat
content_base.xpt
content_html.xpt
content_htmldoc.xpt
content_xmldoc.xpt
content_xslt.xpt
content_xtf.xpt
cookie.dll
cookie.xpt
docshell_base.xpt
dom.xpt
dom_loadsave.xpt
dom_range.xpt
dom_sidebar.xpt
dom_stylesheets.xpt
dom_svg.xpt
dom_traversal.xpt
dom_views.xpt
dom_xbl.xpt
dom_xpath.xpt
dom_xul.xpt
editor.xpt
embed_base.xpt
embed_lite.dll
exthandler.xpt
gfx.xpt
gkgfxwin.dll
gksvgrenderer.xpt
history.xpt
htmlparser.xpt
imgicon.dll
imgicon.xpt
imglib2.xpt
intl.xpt
intlcmpt.dll
intlcmpt.xpt
jar.xpt
js_bridge.xpt
layout_base.xpt
layout_printing.xpt
layout_xul.xpt
layout_xul_tree.xpt
locale.xpt
lwbrk.xpt
mimetype.xpt
mork.dll
necko.xpt
necko_about.xpt
necko_cache.xpt
necko_cookie.xpt
necko_data.xpt
necko_dns.xpt
necko_file.xpt
necko_ftp.xpt
necko_http.xpt
necko_res.xpt
necko_socket.xpt
necko_strconv.xpt
necko_viewsource.xpt
necko2.dll
nsAxSecurityPolicy.js
nsIMozAxPlugin.xpt
nsProxyAutoConfig.js
oji.dll
oji.xpt
p3p.dll
p3p.xpt
perms.dll
pipboot.xpt
pipnss.dll
pipnss.xpt
pippki.dll
pippki.xpt


Options: ReplyQuote
Re: lightweight as possible
Posted by: luk3Z
Date: March 06, 2011 05:51PM

@Kahlos

Nice batch but AdBlock disappear.
Anyway after using this batch my KM starting in less than 3 sec. without Loader smiling smiley

Edit 4 (52 useless files):
Preserve AdBlock function, history and SSL/TLS (save this as *.bat file and put it in components dir):


:: Creates ~ directory and places all unnecessary components in there
:: Make a batch file using the following code and place it in the K-Melon components directory
rem version/edit 4
mkdir ~
rem [need to check - who have this] move accessibility.dll ~
rem [need to check - who have this] move accessibility.xpt ~
rem [need to check - who have this] move accessibility-msaa.xpt ~
move appcomps.dll ~
rem move appshell.dll ~
rem move appshell.xpt ~
move autocomplete.xpt ~
move autoconfig.dll ~
move autoconfig.xpt ~
rem move caps.xpt ~
move chardet.xpt ~
move chrome.xpt ~
move composer.dll ~
move composer.xpt ~
move compreg.dat ~
rem move content_base.xpt ~
move content_html.xpt ~
move content_htmldoc.xpt ~
move content_xmldoc.xpt ~
move content_xslt.xpt ~
move content_xtf.xpt ~
rem [to avoid login problems] move cookie.dll ~
rem [to avoid login problems] move cookie.xpt ~
rem [CRASH] move docshell_base.xpt ~
move dom.xpt ~
move dom_loadsave.xpt ~
move dom_range.xpt ~
move dom_sidebar.xpt ~
rem [some pages use styles.css] move dom_stylesheets.xpt ~
move dom_svg.xpt ~
rem move dom_traversal.xpt ~
rem move dom_views.xpt ~
rem move dom_xbl.xpt ~
rem [used in the forms on forums etc.] move dom_xpath.xpt ~
rem move dom_xul.xpt ~
move editor.xpt ~
move embed_base.xpt ~
rem [need to check - who have this] move embed_lite.dll ~
move exthandler.xpt ~
move gfx.xpt ~
rem [need to check - who have this] move gkgfxwin.dll ~
rem [need to check - who have this] move gksvgrenderer.xpt ~
rem [need to show history & cache values in Preferences->Priv&Sec] move history.xpt ~
move htmlparser.xpt ~
move imgicon.dll ~
move imgicon.xpt ~
move imglib2.xpt ~
rem move intl.xpt ~
rem [need to check - who have this] move intlcmpt.dll ~
rem [need to check - who have this] move intlcmpt.xpt ~
move jar.xpt ~
move js_bridge.xpt ~
rem move layout_base.xpt ~
move layout_printing.xpt ~
rem move layout_xul.xpt ~
rem move layout_xul_tree.xpt ~
move locale.xpt ~
move lwbrk.xpt ~
move mimetype.xpt ~
rem [only if you want to have history function] move mork.dll ~
rem move necko.xpt ~
move necko_about.xpt ~
move necko_cache.xpt ~
move necko_cookie.xpt ~
rem [need to check - who have this] move necko_data.xpt ~
move necko_dns.xpt ~
move necko_file.xpt ~
rem [need to check - who have this] move movemovenecko_ftp.xpt ~
move necko_http.xpt ~
move necko_res.xpt ~
move necko_socket.xpt ~
move necko_strconv.xpt ~
move necko_viewsource.xpt ~
rem [need to check - who have this] move necko2.dll ~
move nsAxSecurityPolicy.js ~
move nsIMozAxPlugin.xpt ~
move nsProxyAutoConfig.js ~
move oji.dll ~
move oji.xpt ~
rem [need to check - who have this] move p3p.dll ~
rem [need to check - who have this] move p3p.xpt ~
move perms.dll ~
move pipboot.xpt ~
rem [need to SSL & TLS] move pipnss.dll ~
rem [need to SSL & TLS] move pipnss.xpt ~
move pippki.dll ~
move pippki.xpt ~

If you see rem [need to check - who have this] this mean I haven't this file, so it need test. Anyway after batch made by Kahlos KM is little faster but after my batch mod you have Adblock, history and SSL/TLS working smiling smiley
Nice work Kahlos!



Edited 11 time(s). Last edit at 03/09/2011 10:51PM by luk3Z.

Options: ReplyQuote
Re: lightweight as possible
Posted by: luk3Z
Date: March 08, 2011 10:47PM

Ok fellows.
Today I run Loader to check how fast KM is and my browser starting in less than 1 sec! Wow I never used it! Without Loader KM starting in 3 sec. This is fantastic!

Loader is like 8th Wonder of the World.



Edited 3 time(s). Last edit at 03/08/2011 10:56PM by luk3Z.

Options: ReplyQuote
Re: lightweight as possible
Posted by: luk3Z
Date: April 06, 2011 11:57PM

Preserve AdBlock 1.3.6 functionality, history and SSL/TLS (save this as *.bat file and put it in components dir):

:: Creates ~ directory and places all unnecessary components in there
:: Make a batch file using the following code and place it in the K-Melon components directory
rem version/edit 5 (6.IV.2011)
mkdir ~
rem [need to check - who have this] move accessibility.dll ~
rem [need to check - who have this] move accessibility.xpt ~
rem [need to check - who have this] move accessibility-msaa.xpt ~
move appcomps.dll ~
rem move appshell.dll ~
rem move appshell.xpt ~
move autocomplete.xpt ~
move autoconfig.dll ~
move autoconfig.xpt ~
rem move caps.xpt ~
move chardet.xpt ~
move chrome.xpt ~
move composer.dll ~
move composer.xpt ~
move compreg.dat ~
rem move content_base.xpt ~
move content_html.xpt ~
move content_htmldoc.xpt ~
move content_xmldoc.xpt ~
move content_xslt.xpt ~
move content_xtf.xpt ~
rem [to avoid login problems] move cookie.dll ~
rem [to avoid login problems] move cookie.xpt ~
rem [CRASH] move docshell_base.xpt ~
move dom.xpt ~
move dom_loadsave.xpt ~
move dom_range.xpt ~
move dom_sidebar.xpt ~
rem [some pages use styles.css] move dom_stylesheets.xpt ~
move dom_svg.xpt ~
rem move dom_traversal.xpt ~
rem move dom_views.xpt ~
rem move dom_xbl.xpt ~
rem [used in the forms on forums etc.] move dom_xpath.xpt ~
rem move dom_xul.xpt ~
move editor.xpt ~
move embed_base.xpt ~
rem [need to check - who have this] move embed_lite.dll ~
move exthandler.xpt ~
move gfx.xpt ~
rem [need to check - who have this] move gkgfxwin.dll ~
rem [need to check - who have this] move gksvgrenderer.xpt ~
rem [need to show history & cache values in Preferences->Priv&Sec] move history.xpt ~
move htmlparser.xpt ~
move imgicon.dll ~
move imgicon.xpt ~
move imglib2.xpt ~
rem move intl.xpt ~
rem [need to check - who have this] move intlcmpt.dll ~
rem [need to check - who have this] move intlcmpt.xpt ~
move jar.xpt ~
move js_bridge.xpt ~
rem move layout_base.xpt ~
move layout_printing.xpt ~
rem move layout_xul.xpt ~
rem move layout_xul_tree.xpt ~
move locale.xpt ~
move lwbrk.xpt ~
move mimetype.xpt ~
rem [only if you want to have history function] move mork.dll ~
rem move necko.xpt ~
move necko_about.xpt ~
move necko_cache.xpt ~
rem move necko_cookie.xpt ~ [needed for adblockpluskmeleon-1.3.6]
rem [need to check - who have this] move necko_data.xpt ~
move necko_dns.xpt ~
move necko_file.xpt ~
rem [need to check - who have this] move movemovenecko_ftp.xpt ~
move necko_http.xpt ~
move necko_res.xpt ~
move necko_socket.xpt ~
move necko_strconv.xpt ~
move necko_viewsource.xpt ~
rem [need to check - who have this] move necko2.dll ~
move nsAxSecurityPolicy.js ~
move nsIMozAxPlugin.xpt ~
move nsProxyAutoConfig.js ~
move oji.dll ~
move oji.xpt ~
rem [need to check - who have this] move p3p.dll ~
rem [need to check - who have this] move p3p.xpt ~
move perms.dll ~
move pipboot.xpt ~
rem [need to SSL & TLS] move pipnss.dll ~
rem [need to SSL & TLS] move pipnss.xpt ~
move pippki.dll ~
move pippki.xpt ~

Options: ReplyQuote
Re: lightweight as possible
Posted by: km2
Date: April 08, 2011 03:26AM

Quote

mork.dll only if you want to have history function

Without you can't download anything.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.