▲ | PaulHoule 2 days ago | |
You have choices, especially all the choices that 1999-style web applications have. The shopping cart can be kept on the back end and referenced by an id stored in a cookie. You can keep partially filled out forms in hidden form variables and can send them back in either GET or POST. Not all requests require all the form data, for instance my RSS reader YOShInOn is HTMX based -- you can see two forms from it here: https://mastodon.social/@UP8/114887102728039235 in the one at the upper left there is a main form where you can view one item and evaluate it which involves POSTing a form with hidden input fields but above that I can change the judgements of the past five items by just flipping one of the <selects> which needs to only submit the id and the judgement selected in the select. I guess on clicking one of the buttons in the bottom section I could redraw the the bottom section, insert a <select> row at the bottom of the list and the delete the one at the top, but it just redraws the whole form which is OK because I don't have 200k worth of open graph and other meta data in the <head> and endless <script> tags and any CSS other than bootstrap and maybe 5k of my own, which all caches properly. |