Add the onerror handler to html, but it seems has an error when it first load, it execute the js in head flag