Coder Social home page Coder Social logo

alienzhou / fe-performance-journey Goto Github PK

View Code? Open in Web Editor NEW
341.0 11.0 53.0 37.79 MB

🚵 a Journey of Performance Optimizing in Frontend 🚀

Home Page: https://alienzhou.com/projects/fe-performance-journey/

JavaScript 100.00%
performance performance-analysis frontend optimization handbook guide

fe-performance-journey's Issues

CSSOM 阻塞 js 执行?(4-parse)

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,显然不符。

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.