CodeSeven/toastr — pull request #66 by diogogmt (2013-03-04 01:07:26+00:00)
Title: Loading toastr after the DOM is ready

I had the same problem a couple of times where I would add toastr to my app, no errors would show up in the console, however the notifications would not be displayed.

The problem was the order the scripts were being loaded.
I was loading toastr in the head, before the DOM was ready

Wouldn't be better to show the error on the console when toastr is being loaded in the wrong place in the page instead of leaving the users wondering what might be wrong?

This would not affect performance since toastr needs the DOM ready to get a reference to the $(body) either way