[Feature] Allow loading of library after page is loaded

Pull request to include readyState check, just like what jQuery does

Completes issue: https://github.com/t4t5/sweetalert/issues