Project

General

Profile

PWA / WebAssembly

Added by Christian Meyer about 4 years ago

Hi!

Currently I have to work with JavaScript to build WebApplications and have been introduced to the Concept of Progressive Web Applications or PWA for short.

These are Websites, cached on the Client for faster Rendering and Offline Capabilities.

Now I was curious if that would be in any way possible with Wt... From my current understanding, this should not really be the case.

Unless it is relatively static content and does not rely on Server Data.

Second Part of the question: Would Web-Assembly be a way to have a Wt Website compiled into?

I mean If we have a chance to Design and Build a Website in Wt, Compile it into Server-side Backend and Client-side Web-Assembly, with functionality to cache Data and give some sort of offline experience, that would be amazing!

I really really hate JavaScript... And I would love to be able to work on my spare-time projects with Wt.

But currently, the promise of PWA makes me consider switching ...

What's your take on that?

Apparently PWAs are in development since 2014 and gained Support in all Major Browsers by now.

Cheers!

Christian


Replies (2)

RE: PWA / WebAssembly - Added by Roel Standaert about 4 years ago

Wt is indeed not really made with the idea of progressive web apps in mind. Wt apps don't really work if there's no connection to the server.

I think it's a theoretical possibility to compile Wt for the client side with WebAssembly, and that could be worth exploring. I didn't look too much into it yet, but it seems to me that a lot of the interfacing code between the DOM and WebAssembly is still a work in progress.

RE: PWA / WebAssembly - Added by Trigve Siver about 4 years ago

I've created a topic here about the wasm modularization ( https://redmine.webtoolkit.eu/boards/1/topics/16262) .

If thee were some modularization done, that is the client side would be compiled to WASM then I think one could use it to create PWA too (the server side would then need to be custom or heavily modified Wt).

    (1-2/2)