From b6200568d4e9a99903a854b7ec2346c8cf64d799 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 25 Aug 2006 18:51:01 +0000 Subject: [PATCH] IE breaks on this -- probably because document.write () delays the onload, but appending script elements doesn't. (Hooray for IE.) rolling this back and reopening the ticket until I can work out the best workaround for this. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/OpenLayers.js b/lib/OpenLayers.js index 02b7f46040..e9628475ac 100644 --- a/lib/OpenLayers.js +++ b/lib/OpenLayers.js @@ -108,12 +108,9 @@ if (typeof(_OPENLAYERS_SFL_) == "undefined") { catch (e) { start=0; } for (var i = start; i < jsfiles.length; i++) { - var currentScriptElem = document.createElement('script'); - currentScriptElem.type = 'text/javascript'; - currentScriptElem.src = host + jsfiles[i]; - - document.getElementsByTagName("head")[0].appendChild(currentScriptElem); - + var currentScriptTag = ""; + allScriptTags += currentScriptTag; } + document.write(allScriptTags); })(); }