Comments (4)
When someone used server side rendering, browser load script/link sources from document, if react-lite render script/link, they will be loaded twice.
from react-lite.
when react-lite render script/link, what does react-lite do specifically? js will execute again?
from react-lite.
react-lite渲染script/link标签的时候具体做了什么呢?
from react-lite.
我的意思是,服务端渲染时 html 字符串里已经有 script\link 的请求了,浏览器端再 document.createElement + appendChild 相同的 script\link ,浏览器会再请求一遍。
这不是 react-lite 做了特别的事情,而是 react 做了特别的事情,继承了服务端渲染的 dom 结构,不会重新创建 dom。而 react-lite 没有这部分内容,是重新替换整个 dom 树。
from react-lite.
Related Issues (20)
- Possible reasons react-lite results in ~2KB bundle size reduction? HOT 1
- Module not found: Error: Can't resolve 'react-dom/lib/HTMLDOMPropertyConfig' HOT 1
- Uncaught Error: must set key for <rc-animate> children
- history.push() inside componentWillReceiveProps breaks destroyVcomponent() HOT 3
- Cannot set property 'parentContext' of undefined HOT 9
- Strips out iOS `playsInline` attribute
- Audio event support
- Draft.js
- Cannot set property 'parentContext' of undefined HOT 2
- not an issue! I need a developper , website using react-lite with material-ui HOT 1
- react-lite doesn't throw errors if ReactLite is loaded twice on page HOT 2
- Recommendation: component RUM performance react-lite vs react HOT 1
- 菜单高亮只会初始化一次,之后的点击不会生效
- material-ui tabs won't work
- Not triggering click event the first time when used with material-ui HOT 2
- Select Value not selecting option HOT 7
- plans for react 16 compatible? HOT 3
- onClick handler triggered for disabled button
- Should I install fastclick by myself? HOT 3
- Uncaught InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-lite.