each browser has a cache, so .. pos stores data in the browserβs cache called the DOM (Document Object Model), so it saves the data as an object. for example, there is order in order, it creates an order object in the DOM and stores client details in it in the same way as for the basket item that it stores in the DOM.
and there is a javascript method that calls the actual code on the server so that this order is saved and processed. but if the connection is lost or Nework is unavailable, then storing data in this cache means DOM .. and when it receives the connection, because it pinging at every perticualar time interval, it sends all this saved data to the server and processes it.
In short, this is the magic of javascript.
Chavada viki
source share