-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[js] 第85天 js延迟加载的方式有哪些? #594
Labels
js
JavaScript
Comments
defer 属性 |
利用setTimeout(); <script id="spt" src="" type="text/javascript"></script>
<script type="text/javascript">
setTimeout(() => {
document.getElementById('spt').src = "a.js";
},1000);
</script> |
defer属性 只知道 |
defer属性只能在 Internet Explorer 中运行 |
|
defer属性,或者setTimeout动态加载script。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第85天 js延迟加载的方式有哪些?
The text was updated successfully, but these errors were encountered: