<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Slow hosted form pop up in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Slow-hosted-form-pop-up/m-p/41282#M22364</link>
    <description>&lt;P&gt;I've added hosted forms to my site and noticed that when a user clicks to add payment method, it is pretty slow. The pop up appears immediately but for content to appear, it takes around 5 seconds or longer. Turned on fiddler and found the delay on a tunnel event to authorize.net.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to speed this up?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2014 13:44:02 GMT</pubDate>
    <dc:creator>martin1b</dc:creator>
    <dc:date>2014-05-28T13:44:02Z</dc:date>
    <item>
      <title>Slow hosted form pop up</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Slow-hosted-form-pop-up/m-p/41282#M22364</link>
      <description>&lt;P&gt;I've added hosted forms to my site and noticed that when a user clicks to add payment method, it is pretty slow. The pop up appears immediately but for content to appear, it takes around 5 seconds or longer. Turned on fiddler and found the delay on a tunnel event to authorize.net.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to speed this up?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 13:44:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Slow-hosted-form-pop-up/m-p/41282#M22364</guid>
      <dc:creator>martin1b</dc:creator>
      <dc:date>2014-05-28T13:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Slow hosted form pop up</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Slow-hosted-form-pop-up/m-p/41326#M22385</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5 seconds seems unusually long, but there is always going to be a delay in the way that this content is loaded. When working with a lightbox, the lightbox frame itself is rendered by javascript that the browser has already loaded and is practically instant. However, the content of the lightbox is yet to be loaded and will always take sometime to retreive across the internet. The exact length of this descrepancy could be heavily affected by the end-user's connection speed or similar factors.&amp;nbsp;I don't have a way of speeding this up or making the limit go away altogether, but I can tell you a potential workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When working with 3rd party content in a lightbox, the key is to try and load the content before displaying the lightbox to the end user at all. Here is a snippet of code from my own hosted CIM demonstration implementation that does just that. Specifically, this is the function called to make the lightbox visible to the end user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;anetPopup&lt;STRONG&gt;.&lt;/STRONG&gt;open &lt;STRONG&gt;= &lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000080; font-size: small;"&gt;&lt;SPAN style="color: #000080; font-size: small;"&gt;function&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;()&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIR&gt;&lt;DIR&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal,monaco;"&gt;// Draw the lightbox frame as a block element. This must be done if you are resizing the frame with the iFrameCommunicator because some browsers won't let you resize an element with a display style of "none"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;document&lt;STRONG&gt;.&lt;/STRONG&gt;getElementById&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;"anetDiv"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;style&lt;STRONG&gt;.&lt;/STRONG&gt;display &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;"block"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal,monaco;"&gt;// Set the opacity to 0 so that the box is not actually visible to the end user just yet&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;document&lt;STRONG&gt;.&lt;/STRONG&gt;getElementById&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;"anetDiv"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;style&lt;STRONG&gt;.&lt;/STRONG&gt;opacity &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;"0"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal,monaco;"&gt;// Display some sort of loading animation to the customer so that they have feedback that something is happening&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;$&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;".loading"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;show&lt;STRONG&gt;();&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal,monaco;"&gt;// Use setTimeOut to wait 1 second (configurable) before making the popup actually visible to the end user&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;setTimeout&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000080; font-size: small;"&gt;&lt;SPAN style="color: #000080; font-size: small;"&gt;function&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;(){&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;document&lt;STRONG&gt;.&lt;/STRONG&gt;getElementById&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;"anetDiv"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;style&lt;STRONG&gt;.&lt;/STRONG&gt;opacity &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;"1"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;;},&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;1000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal,monaco;"&gt;// Remove the loading animation, also after 1 second&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;setTimeout&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000080; font-size: small;"&gt;&lt;SPAN style="color: #000080; font-size: small;"&gt;function&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;(){&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;$&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;&lt;SPAN style="color: #808080; font-size: small;"&gt;".loading"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;hide&lt;STRONG&gt;();},&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;1000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIR&gt;&lt;/DIR&gt;
&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my own testing, 1 second was enough of a delay so that the content is reliably loaded and ready to be presented to the end user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 20:03:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Slow-hosted-form-pop-up/m-p/41326#M22385</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2014-05-30T20:03:54Z</dc:date>
    </item>
  </channel>
</rss>

