t4t5/sweetalert — pull request #141 by mazlix (2014-10-18 22:34:25+00:00)
Title: Dispatch event when initialized

Regarding https://github.com/t4t5/sweetalert/issues/124
Made an event "swal:init" that you can listen to in case you want to display the modal on document load, this way you can just put it in
document.body.addEventListener("swal:init", function() { swal("Head", "Body") })