top | item 37764284

(no title)

shanebellone | 2 years ago

Let me clarify with some context. I've been tinkering with an infinite grid concept that consumes a streamed JSON feed (plus a sufficient data buffer to hide any delay from the user) to create and then display content with the help of a JS factory. All related media is then streamed to the browser and lazy loaded when needed. With this setup, you can traverse a database without refreshing the page by redrawing the window.

The only potential drawback I see is whether or not search crawlers could index content that's introduced via JS after a page load.

Edit: It also appears to protect from scraping... so I suspect it would conflict with indexability. That's a pretty big downside if true.

discuss

order

warrenm|2 years ago

That sounds like AJAX, no?

shanebellone|2 years ago

It does sound like it, but no it's just plain JS. I recorded a short clip; showing is better than attempting to explain.

Edit: It is almost AJAX. The more I think about it the more the boundaries get blurry. Essentially, it's AJAX that does not fetch or receive resources directly. It interacts with a buffer that holds JSON which describes the next batch of cards. The images are streamed via <img> tag, so the buffer is small relative to the media it represents.

https://www.youtube.com/watch?v=6eSDuAe3pHA