Ask coding questions

← Back to all posts
How to have auto preview in HTML
JustAGlitch

Is there a way to set a continuous preview on replit? I would like to have it so it shows stuff as soon as I type it, instead of refreshing. If it's for resource management, my pc and internet connection are more than powerful enough for a continuously refreshing page.

Voters
JustAGlitch
Comments
hotnewtop
Saml2020

The regular HTML repls does not support that. But you could look into frameworks with build in change detection and rendering like vite/vue.

MrVoo

That would be too hard to do, it takes five seconds to refresh anyway :/