fix DOMContentLoaded in async script