Skip to content Skip to sidebar Skip to footer

Updating Web App Code Without Reloading It

Is there any way or possibility to update an apps code and have the client adopt it without reloading the app/website? I mean updating live application code, like adding or removin

Solution 1:

By update the code I presume you mean live code reload or changing the modules loaded on a page without changing it.

This would require you to have an infrastructure library that allows you to either reload or add modules of code to your applications. ncore allows this

Next you would need a communication channel from the server or some other remote end point to send new modules or module reload commands to the client browser.

The concept being that you have a websocket open and you send one of two commands

  • add module : url
  • reload module : name

The app in the browser would then either load and add that module from an url or reload that module.

This is basically remote control over the state of an application in a users browser.

Post a Comment for "Updating Web App Code Without Reloading It"