workaround for link.onload