Jump to content

Assest loader improvements


Hersir
 Share

Recommended Posts

Hi,

would like to propose some possible improvements for AssetsManager :)

  1. there are multiple tasks that can be added to manager, but I think would be nice to have general `addTask(task: AbstractAssetTask)`  so custom tasks could be created and added to manager if needed.
  2. right now response in onSuccess  can be just string or ArrayBuffer but I think it would be great to get back request object so there would be more control what to do on success.
  3. minor but I didnt found way to add mime types to loader, but that can be fixed on server side as well, so server always serves files with proper mime type

 

I came across this when was trying to implement svg file loader task to load svg as document.

Was quick to implement task but could not add it to mananger and it needed request.responseXML so had no acces to it:)

For now used text file tasks and parse string using DomParser.

So what other think about this ?

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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