4 ms·
ND-JSON only works for aggregations of data where the chunks are small. If you're building a news site you can't really chunk a single article up into ND-JSON.
by jaffathecake 10y ago
ND-JSON only works for aggregations of data where the chunks are small. If you're building a news site you can't really chunk a single article up into ND-JSON. If you want a transition between pages then you can't use full navigations, and if you want to keep streaming the iframe hack seems to be the only solution.
- iainmerrick 10y agoIf you're building a news site you can't really chunk a single article up into ND-JSON. One paragraph per chunk?
- jaffathecake 10y agoHeh, right. And if you've got something nested like a quote, a list, an aside etc etc, how do you represent that as a flat stream of chunks? I suppose you could implement some kind of SAX-like thing expressed as ND-JSON… …orrrrrr avoid all that by streaming HTML.
- RubyPinch 10y agowell, blockquote, ol, ul, aside, etc etc, are all flows, and as such are not permitted inside of p, which can only have phrasing content right?
- jaffathecake 10y agoRight, but they can all have paragraphs (and many other elements) as a descendant.
- iainmerrick 10y agoWell, personally I'd say "keep the styling and scripting to a minimum, don't make it a single-page app at all, and just load the whole page when you need it." But if I were charge of a magazine and ran it that way, it would quickly die from lack of ad revenue, oh well. :/