DEV Community

Tea Reggi
Tea Reggi

Posted on

"Smart" JavaScript Delivery, Qwik + React in one?

What if there was a meta-framework with the best of Qwik and React / Next.js? What if the delivery mechanism for html and javascript was automatically decided for you based on how users interact with your site? Say you have a webpage with a simple button.

Image description

What if the system knew 79% of the people who landed on this page would most-likely end up clicking the button and loaded it? Conversely if on 15% clicked it it would not send the javascript down when the page loaded.

Is there a possibility in the future the javascript delivery mechanism wouldn't be something the programmer has to think about, the optimizations when it comes to code-splitting could be determined using algorithms, machine learning, user interaction patterns?

Top comments (0)