Comments (5)
By the way, because of repetition, related_content compresses better. Gzipped:
related_content 1108 34%
prose 892 28%
contributors 416 13%
browser_compatibility 283 8%
examples 250 7%
interactive_example_url 83 2%
mdn_url 78 2%
title 51 1%
attributes 22 0%
from yari.
One interesting solution is to not hydrate with content from a serialized string. Then you get the best of both worlds. You get no re-render on the client-side and you don't have to include all the heavy state in a serialized JSON string.
from yari.
A horribly rough draft is: https://github.com/peterbe/stumptown-renderer/tree/hydrate-based-on-dom
It removes the need to include the state serialized. But it breaks hydration.
from yari.
A flaw that can't be escaped is that if you follow that idea it means you simply don't get the event handlers. I.e. all onClick
s within the Document will not work. And it can't because we never give the React-in-the-browser a chance to build up its own virtual DOM.
from yari.
Perhaps, it's a better idea to break apart index.json
into index.json
and related_content.json
and then lazy-load the sidebar with XHR after initial load. Not great either.
from yari.
Related Issues (20)
- Yari build possibly broken HOT 4
- web-features baseline status is not sync'd with BCD HOT 4
- plain.html is not consistent with deployed index.html HOT 6
- Enable `allow-forms` or do something else. HOT 1
- Links are mixed case, but files on disk are lowercase HOT 1
- `linear-gradient()` Formal syntax is outdated HOT 7
- Increased font size breaks layout
- Large blank space at bottom of page on certain screen widths HOT 3
- Create short static sharable links in Playground
- MDN Plus and Playground links shows as flaws
- Should other attributes be linked for consistency in the formal syntax? HOT 1
- Duplicate IDs: can they be helped?
- What to do with per-key Baseline statuses
- MDN crashes brave HOT 2
- Formal syntax doesn't show values from other spces
- Page keeps Scrolling Down after footer between specific widths
- AddonSidebar is renders as collapsed when viewing WebExtensions methods docs HOT 1
- Experimental and deprecated icons overlap when the topic is a sidebar heading
- Make Yari compatible with cheerio 1.0.0
- Add @types/js-yaml to devdependency list
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 yari.