<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Incorrect order of javascript</title> 
  <pubDate>Fri, 10 Apr 2026 10:04:36 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11099</link> 
  <atom:link rel="self" type="application/rss+xml" title="Incorrect order of javascript" href="https://bugs.horde.org/ticket/11099/rss" /> 
  <description>Incorrect order of javascript</description> 
 
   
   
  <item> 
   <title>If using Horde::popupJs() after the page output has already </title> 
   <description>If using Horde::popupJs() after the page output has already started, the Horde.popup_block_text is set before popup.js is loaded.</description> 
   <pubDate>Thu, 22 Mar 2012 18:47:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70836</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 2f0d4b2305f</title> 
   <description>Changes have been made in Git (develop):

commit 2f0d4b2305fb54c4405a202d1adcf9284c5b4a67
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Fri Mar 23 13:34:08 2012 -0600

    Bug #11099: Move popup js inclusion into Horde_PageOutput

 framework/Core/lib/Horde.php              |    2 +-
 framework/Core/lib/Horde/PageOutput.php   |   13 +++++++++++++
 framework/Core/lib/Horde/Script/Files.php |   28 ++++++++++++++++++++--------
 3 files changed, 34 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/2f0d4b2305fb54c4405a202d1adcf9284c5b4a67</description> 
   <pubDate>Fri, 23 Mar 2012 19:36:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70845</link> 
  </item> 
   
  <item> 
   <title>&gt; If using Horde::popupJs() after the page output has alread</title> 
   <description>&gt; If using Horde::popupJs() after the page output has already started, 
&gt; the Horde.popup_block_text is set before popup.js is loaded.

Not understanding this.  Even if added after page output has started, the text string will be wrapped in a &#039;dom:loaded&#039; event, so it shouldn&#039;t be executed until all scripts are loaded?</description> 
   <pubDate>Fri, 23 Mar 2012 19:37:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70847</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; If using Horde::popupJs() after the page output has alrea</title> 
   <description>&gt;&gt; If using Horde::popupJs() after the page output has already started,
&gt;&gt; the Horde.popup_block_text is set before popup.js is loaded.
&gt;
&gt; Not understanding this.  Even if added after page output has started, 
&gt; the text string will be wrapped in a &#039;dom:loaded&#039; event, so it 
&gt; shouldn&#039;t be executed until all scripts are loaded?

If output has been started already, any inlineScripts (and thus any inlinJsVars too) are printed immediately if onload has been specified.
This happens in Trean for example, if you need a real-life example.</description> 
   <pubDate>Fri, 23 Mar 2012 20:49:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70849</link> 
  </item> 
   
  <item> 
   <title>&gt; If output has been started already, any inlineScripts (and</title> 
   <description>&gt; If output has been started already, any inlineScripts (and thus any 
&gt; inlinJsVars too) are printed immediately if onload has been specified.
&gt; This happens in Trean for example, if you need a real-life example.

And that&#039;s the expected behavior, right?  It is wrapped in a dom:loaded event, and is not attempted to be inserted into the Horde object until the page is loaded, since there is a chance that the Horde object won&#039;t be loaded until later in the page?

Unfortunately, I don&#039;t have trean configured on my server to test.</description> 
   <pubDate>Fri, 23 Mar 2012 20:53:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70850</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; If output has been started already, any inlineScripts (an</title> 
   <description>&gt;&gt; If output has been started already, any inlineScripts (and thus any
&gt;&gt; inlinJsVars too) are printed immediately if onload has been specified.
&gt;&gt; This happens in Trean for example, if you need a real-life example.
&gt;
&gt; And that&#039;s the expected behavior, right?  It is wrapped in a 
&gt; dom:loaded event, and is not attempted to be inserted into the Horde 
&gt; object until the page is loaded, since there is a chance that the 
&gt; Horde object won&#039;t be loaded until later in the page?

The problem was that it was *not* wrapped in a dom:loaded event if called when output already started, even though it was supposed to.
This has been fixed with some of recent commits, it&#039;s properly wrapped again now.</description> 
   <pubDate>Mon, 26 Mar 2012 09:26:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70878</link> 
  </item> 
   
  <item> 
   <title>Then it was because of this failed conversion when convertin</title> 
   <description>Then it was because of this failed conversion when converting to Horde_PageOutput:

array(&#039;onload&#039; =&gt; &#039;dom&#039;)

&#039;onload&#039; is now a boolean value.  And intval(&#039;dom&#039;) === 0.</description> 
   <pubDate>Mon, 26 Mar 2012 19:26:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t70890</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 2f0d4b2305fb</title> 
   <description>Changes have been made in Git (master):

commit 2f0d4b2305fb54c4405a202d1adcf9284c5b4a67
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Fri Mar 23 13:34:08 2012 -0600

    Bug #11099: Move popup js inclusion into Horde_PageOutput

 framework/Core/lib/Horde.php              |    2 +-
 framework/Core/lib/Horde/PageOutput.php   |   13 +++++++++++++
 framework/Core/lib/Horde/Script/Files.php |   28 ++++++++++++++++++++--------
 3 files changed, 34 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/2f0d4b2305fb54c4405a202d1adcf9284c5b4a67</description> 
   <pubDate>Wed, 29 Aug 2012 12:33:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11099#t72503</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
