add unload check

new version of webkit and gecko browsers have supported 'onload' and
'onerror' event of link tag, they needn't hack any more.