18
kiki
247d

SSR in frontend frameworks

Comments
  • 6
    Just use nunjucks or mustache or twig or pug or whatever template engine
    Frontend js was never meant to be executed on a server
    Hello can I please get isomorphic react-native-web hooks with graphql n+1 in nextjs on an edge backend-for-frontend server with build-time css-in-js please
    They have played us for absolute fools
  • 4
    All this server-rendered agit and yet there's still no standard for
    - link prefetching
    - preloaders
    - partial document updates (even though one of the main features of XML is queriability)
    - page transitions other than the massively popular "flashbang" effect
  • 0
    None of these require a Turing-complete document description language, it's the W3C that decided to define them in terms of JS.
  • 0
    But there's actually a very simple explanation as to why most advanced features get defined as JS objects and functions:

    The two possible roles of a browser that make sense are an application runtime and a document viewer. Anything that can describe itself as an application will have a ton of custom functionality that it shares with relatively few other applications. The only sensible way to support these is to define a programming language which can construct any logic and control the environment through the runtime.
  • 0
    Service workers are an awesome idea, they reduce the problem of caching to simple concepts and "behaviour". Their only flaw is that their introduction would have been the perfect time to deprecate all HTTP cache control headers and slate a ton of now redundant browser code for deletion.
  • 2
    @lorentz we still need http cache for websites which are not applications but regular documents.
  • 1
    @Lensflare Fair point, there ought to be a way to avoid having to define and implement the interplay of service workers and http cache though
  • 1
    @Lensflare which would mean that every application which are also just documents, HTML Code specifically, sprinkled with js Code to add functionality to it.

    No cache control will make all thise CDNs useless.
Add Comment