We have recently incorporated prototype.js into our software product.
Just recently we have received a small number of complaints that the
web page never stops loading. One customer in particular has these
problems quite frequently. We have narrowed the problem down to line
4025 in prototype.js (version 1.6.0.2). This line is part of some
code that handles the COMContentLoaded event for browsers that don't
support it (i.e. IE).
/* Support for the DOMContentLoaded event is based on work by Dan
Webb,
Matthias Miller, Dean Edwards and John Resig. */
...
...
if (document.addEventListener) {
...
...
} else {
document.write("<script id=__onDOMContentLoaded defer src=//:><\/
script>"); <--- Line 4025
...
...
}
This code refers to a src value of "//:". We have "fixed" this
problem by specifying a file name that doesn't exist and this appears
to work. We attempted to modify to "javascript:void(0)" but our site
uses HTTPS and we constantly get this annoying confirmation dialog.
We have been unable to reproduce this problem at our company and the
customer has since provided us remote access to one of their machines
for testing purposes.
Can anyone comment on this? I'd like to enter a bug on the
prototypejs.org web site, but I don't have any specific repro
scenario.
thanks!