Jump to content
Search Community

LoaderMax loading Duplicate files

zero0000 test
Moderator Tag

Recommended Posts

I have one LoaderMax instance that loads two DataLoad instances that are loading xml files. When the load completes it loads the xml files twice. If I remove LoaderMax instance and load them without it, they load only once.

 


_loaderMax = new LoaderMax({name:"pagesXML", onComplete:_onComplete, onError:_onError, maxConnections:1});

_homeLoader = new DataLoader(home.xml, {name:"home", onComplete:_onHomeComplete, format:"text"});
_loaderMax.append(_homeLoader);

_projectLoader = new DataLoader(projects.xml, {name:"projects", onComplete:_onProjectsComplete, format:"text"});
_loaderMax.append(_projectLoader);

_loaderMax.load();

 

Is there any reason this would happen?

Link to comment
Share on other sites

What makes you think they're loading twice? I wonder if you're mistaking the file size audit for a full load. Please read this:

http://www.greensock.com/loadermax-tips/#10

 

It's very easy to avoid if you don't want to have LoaderMax audit the file sizes for more accurate overall load progress reporting. Everything is explained in that link.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...