Home  >  Article  >  Web Front-end  >  Javascript无阻塞加载具体方式_javascript技巧

Javascript无阻塞加载具体方式_javascript技巧

WBOY
WBOYOriginal
2016-05-16 17:30:471163browse

看了《高性能JavaScript》的读书笔记

几个原则:

1、将脚本放在底部

还是在head中,用以保证在js加载前,能加载出正常显示的页面。

<script>放在</script>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn