bug 64146, Delay nsCharsetMenu initialization to avoid consuming ~2% of startup time, r=dp, sr=brendan, alecf

This commit is contained in:
loadrunner%betak.net 2006-05-17 02:31:27 +00:00
Родитель 514bcf9e53
Коммит e6386201bb
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -36,6 +36,12 @@
width="500" height="394"> width="500" height="394">
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-charset.js"/> <script type="application/x-javascript" src="chrome://communicator/content/pref/pref-charset.js"/>
<script type="application/x-javascript">
<![CDATA[
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.notifyObservers(null, "charsetmenu-selected", "other");
]]>
</script>
<!-- <!--
<hbox class="box-smallheader" title="&charset.customize.left.header;" id="confirm_text" value="&charset.customize.save.popup;"/> <hbox class="box-smallheader" title="&charset.customize.left.header;" id="confirm_text" value="&charset.customize.save.popup;"/>

Просмотреть файл

@ -35,6 +35,8 @@
<script type="application/x-javascript"> <script type="application/x-javascript">
<![CDATA[ <![CDATA[
var _elementIDs = ["active_languages", "DefaultCharsetList"]; var _elementIDs = ["active_languages", "DefaultCharsetList"];
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.notifyObservers(null, "charsetmenu-selected", "other");
]]> ]]>
</script> </script>