This task can be performed using Eleva.js
Pure JavaScript, Pure Performance, Simply Elegant.
Best product for this task

Eleva.js
dev-tools
A minimalist, lightweight, pure vanilla JavaScript frontend runtime framework.
JavaScriptFrontendFrameworkFrontend FrameworkDeveloper ToolsOpen SourceWeb DevelopmentDev ToolsEleva.jsEleva

What to expect from an ideal product
- Write clean JavaScript without wrestling with complex node modules and package managers
- Build fast-loading apps using only vanilla JS functions and DOM manipulation
- Keep your codebase small and maintainable by avoiding third-party dependencies
- Create modern single-page applications without heavy frameworks like React or Angular
- Ship lightweight frontends that work directly in the browser with zero build steps