Hi all,
I had reported before about problems with Roller 2.1 hanging Firefox when
rendering large weblog entries (usually with lots of photos). It is happening
with Firefox 1.5.0.1 and SeaMonkey 1.0 on Windows and Solaris. The browser
hangs half way of rendering the page or sometimes even before showing any
part of the page and has to be killed. No problems with IE or Opera, and
only started to happen after upgrading Roller from 2.0 to 2.1.
First I thought it was an Apache connector problem but it is still happening
without Apache (connecting directly to Tomcat).
If the browser has already cached the photos in the page (which renders
the page faster), it doesn't hang.
I seem to have narrowed down the problem to JavaScript code and the
MathCommentAuthenticator but I cannot find out exactly what it is.
If I disable JavaScript in Firefox, the large pages render OK (but comment
authentication fails, of course)
Looking at the javascript source, I thought it could be related to
clientSideInclude('commentAuthenticator','/roller/CommentAuthenticatorServlet');
defined in roller/theme/scripts/clientSideInclude.js, and the synchronous
XMLHttpRequest call
// Synchronous request, wait till we have it all
req.open('GET', url, false);
(which according to http://jira.magnolia.info/browse/MAGNOLIA-283 could hang the
browser if used in sync mode)
Anyway, I tried changing the sync parameter to 'true' and after that the browser
does not hang any more (javascript turned on), but comment authentication fails
(the math box is not shown).
Any idea what else I can try? Or how can I get the MathCommentAuthenticator
load as it used to in Roller 2.0?
Thanks for any help,
Oscar