createElement and xhr are not ok, use <link>