alienzhou / fe-performance-journey Goto Github PK
View Code? Open in Web Editor NEW🚵 a Journey of Performance Optimizing in Frontend 🚀
Home Page: https://alienzhou.com/projects/fe-performance-journey/
🚵 a Journey of Performance Optimizing in Frontend 🚀
Home Page: https://alienzhou.com/projects/fe-performance-journey/
html 代码, css 写在 header 里, js 写在 body 后面。
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试浏览器渲染</title>
<link rel="stylesheet" href="./assets/style.css">
</head>
<body>
<h1>koa by html file</h1>
<script src="./assets/script.js"></script>
<img width="300" src="./assets/image.png">
</body>
</html>
服务端设置 css 文件延迟 5s 响应。Devtool 中可以看到在接受 Js 和 图片之后才接收到 css 文件以及解析 cssom。
按照 cssom 阻塞 js 执行的说法。css 写在 js 之前,但是 css 延迟响应,得等到 css 解析完成之后才会执行 js,显然不符。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.