Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Preloading race condition with slow connections

$
0
0

Hi,

 

I have an Adobe Edge composition with a fair amount of animation - the compressed *_edge.js file is 75kb compressed or 675kb uncompressed.

 

If I load the default published index.html file with a cold cache on a slow connection (~80kbps) I invariably get a two fatal errors thrown.  Loading it up in a faster environment and everything works fine.

 

Here is a dump of the errorsm including the stack trace:

 

Uncaught ReferenceError: jQuery is not defined characters_edgeActions.js:52

(anonymous function)characters_edgeActions.js:52

 

Uncaught TypeError: Object #<Object> has no method 'okToLaunchComposition' characters_edgePreload.js:27

edgeCallbackcharacters_edgePreload.js:27

    1. (anonymous function)characters_edgePreload.js:15
    2. tcharacters_edgePreload.js:11
    3. dcharacters_edgePreload.js:10
    4. I.b.onreadystatechange.b.onload

 

As you can see, edgeActions is being called before jQuery has finished loading, which is obviously a problem with your preloading code.  Also the _edgePreload file is trying to complete before it's loaded the actual edge.1.5.0.min.js file.

 

Here's Chrome's network panel (sorry I split the images so they didn't end up too tiny)

 

adobe-edge-network-panel-1.pngadobe-edge-network-panel-2.png

 

I'm going to be looking into this further, but thought I'd raise it with you.

 

Many thanks,

 

Pete


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>