Path: csiph.com!usenet.pasdenom.info!goblin3!goblin1!goblin.stu.neva.ru!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1672892.tfqf7eurea@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Mail-Copies-To: usenet@PointedEars.de Organization: PointedEars Software (PES) Date: Thu, 30 May 2013 05:13:58 +0200 User-Agent: KNode/4.10.2 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <3159554.1y7rF9eUTa@PointedEars.de> MIME-Version: 1.0 Lines: 66 NNTP-Posting-Date: 30 May 2013 05:14:00 CEST NNTP-Posting-Host: 5907e36e.newsspool1.arcor-online.net X-Trace: DXC=g]NV^ng@Mc0D]ncZ]`hZ;1ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@0KV1GJ:PY581DZm8W4\YJN Thomas 'PointedEars' Lahn wrote: >> Michael Haufe (TNO) wrote: >> > Will the following perform the same parallel download semantics if it >> > is abstracted into a different file? >> > >> > ... >> > ") >> > document.write("") >> > >> > >> > >> > >> > becoming: >> > >> > >> > >> > >> >> Yes, it will also _not_ achieve “parallel download”. > > Did you say "also", because I forgot to escape the tag for > this post, or is there another reason as well? Please do not top-post. I said “also” because it is unlikely that either of the two approaches will result in “parallel download”. Scripts, when included this way, are always processed sequentially, and AFAIK are also downloaded sequentially: Usually it is a bad idea to use document.write() to include content, particularly script content, nowadays: A possibility for parallel download is asynchronous XHR using two different XHR instances, and inserting “script” elements with the resource's content each upon completion, as I do synchronously in jsx.importFrom(): (Changing that to asynchronous loading is accomplished by simply passing “true” instead of “false” for the third argument. I shall work on that; to date it did not occur to me that it could be useful to load scripts asynchronously.) I did not comment on the missing escaping of because from your being parsed as the end-tag of the “script” element: That said, for backwards-compatibility it is certainly wise to escape “