Skip to content

Consider an array value for paths that does auto retry on error to load #257

@jrburke

Description

@jrburke

From this thread:
http://groups.google.com/group/requirejs/browse_thread/thread/81fb48276f7831b0

It was suggested to have a paths array value that would trigger the "onerror/undef/reconfigure/retry" logic automatically if the path failed.

Another option or addition would be for the errback to receive the current list and where it is in the retry logic.

I would tend to only want to support the automatic logic, and not give position info in a require errback. If fine grained control of the retry is desired, then just the errback should be used without specifying an array to try.

What is also not clear to me yet is how errbacks should work in general when more than one can be triggered for a failed module. Right now both will be triggered. However, no state is shared, and there is no canceling of further error notifications.

Maybe returning true from the error handler means it has been handled, or some other mechanism? Starting to feel heavier weight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy