A whole website in a single JavaScript file
1–10 of 170 posts
Re: A whole website in a single JavaScript file
#2HTML. You're serving HTML.
Doesn't really matter that the server-side language is JS, PHP, or BASIC.
Re: A whole website in a single JavaScript file
#3My man, let me introduce you to ... HTML. It has "time to interactive" at 0.0 seconds and content paints instantly!
Re: A whole website in a single JavaScript file
#4Re: A whole website in a single JavaScript file
#5> rendered dynamically, just in time, at the edge, close to the user. HTML. You're serving HTML. Doesn't really matter that the server-side language is JS, PHP, or BASIC.
And unlike a pure static site, you can add API or form routes
Re: A whole website in a single JavaScript file
#6I don’t think a simple, static site is a great example for an entire framework
The goal was to showcase simple yet intuitive JSX + tailwind at edge, we didn't elaborate on more advanced use-cases like authenticated pages, API endpoints/forms, dynamic pages (location, etc...) or parametric routes.
Re: A whole website in a single JavaScript file
#7"time to interactive: 1.0s / first content paint 1.0s" My man, let me introduce you to ... HTML. It has "time to interactive" at 0.0 seconds and content paints instantly!
Re: A whole website in a single JavaScript file
#8"time to interactive: 1.0s / first content paint 1.0s" My man, let me introduce you to ... HTML. It has "time to interactive" at 0.0 seconds and content paints instantly!
I think you might have misunderstood the blog post. It is server-side rendering on the edge, shipping nothing more than plain HTML/CSS to the browser. There is no client side JS *at all* here.
Re: A whole website in a single JavaScript file
#9Re: A whole website in a single JavaScript file
#10"time to interactive: 1.0s / first content paint 1.0s" My man, let me introduce you to ... HTML. It has "time to interactive" at 0.0 seconds and content paints instantly!