Skip to content
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

浏览器html显示和脚本的执行顺序 #13

Open
lxfriday opened this issue Sep 24, 2019 · 0 comments
Open

浏览器html显示和脚本的执行顺序 #13

lxfriday opened this issue Sep 24, 2019 · 0 comments
Labels
browser browser

Comments

@lxfriday
Copy link
Owner

lxfriday commented Sep 24, 2019

html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>hello</title>
  </head>
  <body>
    <script src=""></script>
    hello
    <script src="./index.js"></script>
  </body>
</html>

js

alert("are u ok");

显示的效果是,先 alertalert 会阻塞 html 的渲染,原因是什么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser browser
Projects
None yet
Development

No branches or pull requests

1 participant