In one of our previous blog entries we (like many blogs on the net) have suggested to tweak your Firefox to use HTTP pipelining. Well, it appears we were wrong.
The tweak worked fine with Firefox 2, but the moment we switched our machines to Firefox 3 everything just stopped. Not a single site would load completely. Some googling brought us to this page which explained it quite nicely.
In short: do set pipelining on, but DO NOT up it too much. Below is a correction to the previous Tip.
1. Type "about:config" into the address bar and hit return. Scroll down and look for the following entries:
Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
2. You can double click on an entry to alter it. Alter the entries as follows:
Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true"
Set "network.http.pipelining.maxrequests" to some number like 3.
This means it will make 3 requests at once.
Test it - go to Google images and search for something, notice how images load, do many of them come up as empty frames? If so, you may need to reduce the number more. 1 effectively disables pipelining.
3. Right-click anywhere and select New-> Integer. Name it "nglayout.initialpaint.delay" and set its value to "0". This value is the amount of time the browser waits before it acts on information it receives.
There you go, now if you're using a broadband connection you'll load pages MUCH faster.
For those of you who are struggling integrating JSpell Evolution into Confluence 2.9.2 here is the outline:
Shutdown your Confluence instance
If you have a standalone version you can perform edits right in your file tree. If you have a packaged version you would need to unpack it, or patch the files in the "build" structure where you run Ant to get your packaged version
Navigate to /confluence/WEB-INF/classes/com/atlassian/confluence/setup
Extract atlassian-tinymce-plugin-3.0-rc2.jar from bundled plugins archive (you may need to verify the file name if you are trying to patch a version different from 2.9.2)
Edit file tinyMceAdaptor.js. You need to change two functions onShowEditor and tinyMCEOnInit so they look like the following:
function onShowEditor()
{
if (navigator.appName != "Microsoft Internet Explorer") {
tinyMCE.execCommand("mceAddControl", true, "wysiwyg" +
escape(AJS.params.parametersName));
// begin: JSpell integration patch
setTimeout(jspellInit,500);
// end: JSpell integration patch
}
}
And
function tinyMCEOnInit(inst) {
// begin: JSpell integration patch
if (navigator.appName == "Microsoft Internet Explorer") {
setTimeout(jspellInit,500);
}
// end: JSpell integration patch
// Once the content has finished loading, make a note of it
tinyMCEHasInit = true;
// tinyMCE.getContent() was used here previously,
// but returned nullfor FireFox.
// As a workaround, grab the textarea's contents
// and set that as the original value (CONF-4498)
tinyMCE.originalHTML = AJS.$("wysiwygTextarea").value;
}
Zip the plugin back up
zip atlassian-tinymce-plugin-3.0-rc2.jar
com/atlassian/confluence/extra/tinymceplugin/tinyMceAdaptor.js
Zip the bundled plugins archive back up
zip atlassian-bundled-plugins.zip
atlassian-tinymce-plugin-3.0-rc2.jar
Remove the copy of the plugin from your confluence home directory, it will be under YOUR_CONFLUENCE_HOME/bundled-plugins
Place the following code-snippet on your clipboard. (This assumes you have JSpell Evolution deployed into your server on /jspellEvolution context, if different - edit accordingly)