Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service-Worker-side rendering 😮 #536

Closed
leomp12 opened this issue Sep 21, 2021 · 1 comment
Closed

Service-Worker-side rendering 😮 #536

leomp12 opened this issue Sep 21, 2021 · 1 comment
Labels
3:hard Not so easy, but we can take care ejs Feature/fix for EJS views and prerendered HTML enhancement New feature or request framework Framework and compilation process

Comments

@leomp12
Copy link
Member

leomp12 commented Sep 21, 2021

Is your feature request related to a problem? Please describe.

  • Some EJS partials are not (and should not be) fully hydrated client side (eg.: shelfs);
  • Can't deal with full Jamstack and tons of products/categories/brands pages, so we have problems to deploy to Netlify and now specially to Cloudflare Pages (without workers);
  • ISG is good but not so easy to control versions, A/B tests and cache as Jamstack with low cost and high perf;

Describe the solution you'd like
Two-level EJS rendering, full prerender some limited pages as fallback and also render EJS first level only (custom delimiters <$= $>) to be final level (<%= %>) rendered on SW for all pages with SW cache low TTL.

Describe alternatives you've considered
N/A

Additional context
https://javascript.plainenglish.io/an-introduction-to-service-worker-side-templating-858b835d5062
https://github.com/unjs/h3

@leomp12 leomp12 added enhancement New feature or request framework Framework and compilation process 3:hard Not so easy, but we can take care ejs Feature/fix for EJS views and prerendered HTML labels Sep 21, 2021
@leomp12
Copy link
Member Author

leomp12 commented May 16, 2022

@leomp12 leomp12 closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3:hard Not so easy, but we can take care ejs Feature/fix for EJS views and prerendered HTML enhancement New feature or request framework Framework and compilation process
Projects
None yet
Development

No branches or pull requests

1 participant