You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jrburke What's the motivation behind not calling the error callback when a module fails to load? I currently have some fallback behavior in an error callback that won't work with almond and would be willing to do a pull request with the error callback being applied.
The idea behind almond was that it was just a simpler AMD API provider for some modules that are already all built into a file. It cannot do dynamic loading, so the uses for an error handler did not seem worth increasing the size of almond as it would put a tax on all users of almond.
But it seems like I could easily just change a couple lines in the main function around line 296 to check for, and invoke, an error callback... only a couple extra lines would be necessary. Plus it would keep parody with require.js without actually doing a dynamic script load.
Since I found a work-around, it's not critical, just thought I'd suggest it.
While almond will not call require errbacks, the usage in module code should not cause errors.
The text was updated successfully, but these errors were encountered: