Menu

#204 ploneglossary causes "A script on this page is causing..."

open
nobody
None
5
2006-04-11
2006-04-11
Anonymous
No

On Plone2.1.2 (zope2.7.8) with PloneGlossary1.3.2, I
do run a zwiki, which does contain some long pages
(e.g. http://freifunk.net/wiki/OLSRKommentare\). These
pages contain html, which is often not well-formed
(since it is a wiki with html-syntax)

The problem is that the ploneglossary.js runs very
long to step through this html code. Then finally,
there is a popup:
"A script on this page is causing mozilla to run
slowly. If it continues to run, your computer may
become unresponsive. Do you want to abort the
script?"

I used venkman to run a profile and here is some
snippet:
highlight_related_glossary_term_in_node: 15990
call(s) (max depth 7), 10715.33ms total, 215.46ms
min, 2673.79ms max, 0.67ms avg

highlight_related_glossary_term_in_text: 8067
call(s), 3153.38ms total, 0.04ms min, 199.76ms max,
0.39ms avg

highlight_related_glossary_term_in_node is called
15990, and this seems to be the problem.

I now even disabled ploneglossary for the wiki part
of the site. I do not know javascript very well, so
if you have any question or some further things I
could do, let me know.

Jens

Discussion


Log in to post a comment.