jrburke/requirejs — Issue #211: text plugin error handling
Author: theluk
Created: 2012-03-10 00:51:52+00:00
State: open

Hi there,

I´m using text plugin for loading in static html documents and generically passing them to a function that places them into the DOM.

Now the funny thing is, that even when i get a 404 back (like that one from Microsoft IIS) it gets rendered into my page. I cannot find any way to catch 404 and load my custom 404.htm.

It would be cool to have something like require("text").onError or some config in the require.config...