Skip to main content

CommonGet

Callable

  • CommonGet(url, callback, retries): void

  • AJAX utility to get a file and return its content. By default will retry requests 10 times


    Parameters

    • url: string

      Path of the resource to request

    • callback: (this, xhr) => void

      Callback to execute once the resource is received

      • optionalretries: number = FETCH_MAX_RETRIES

        How many more times to retry if the request fails - after this hits zero, an error will be logged

      Returns void

      • Nothing