简体   繁体   中英

get source via html script tag causes net::ERR_NAME_NOT_RESOLVED on some Android devices

below screen capture is chrome inspect console, inspecting some user's Android device. 在此处输入图像描述

I definitely have no idea about why 1 or 2 out of almost hundred Android devices cause net::ERR_NAME_NOT_RESOLVED error.

below code is in my django template html file.

...
        <script src="https://unpkg.com/react@17/umd/react.production.min.js" crossorigin></script>
        <script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js" crossorigin></script>
        <script src="https://unpkg.com/smoothscroll-polyfill@0.4.4/dist/smoothscroll.min.js" crossorigin></script>
</head>

not only unpkg react related src, but polyfill, static.ads-twitter and google-analytics also have same error 'net::ERR_NAME_NOT_RESOLVED'

does anyone could help me out how to resolve this issue?

resolved by adding 'react' and 'react-dom' as static files

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM