develwoutacause’s avatardevelwoutacause’s Twitter Archive—№ 861

      1. Apparently you can already do this with the built-in DOMParser API, how have I never heard of this? Sounds like a simple and lightweight way of building dynamic web pages without having to client-side render the whole thing. stackoverflow.com/a/47218717 @develwoutacause/1452082837075607553
    1. …in reply to @develwoutacause
      I was playing around with this and learning some really interesting things about the #HTML spec (DYK caching behavior changes with <script type=module>?). Unfortunately a second power outage killed that flow. So much for trying to be productive... @develwoutacause/1452408712010747909?s=20
  1. …in reply to @develwoutacause
    Ok, managed to get something that mostly works, it's a *very* simple Twitter clone with endless scroll and editing yet functions *entirely* with #SSR, yet is still a #SPA and doesn't require a refresh or a comprehensive HTML-over-the-wire framework. github.com/dgp1130/html-fragments-demo
    1. …in reply to @develwoutacause
      Hopefully I'll find some time soon to talk more about this because it is surprisingly simple and I think this pattern could be used to more easily sprinkle dynamic functionality into a mostly static web application without having to commit to full #CSR.