+ 2
Html table data caching?
What is the best way to implement "caching" using vanilla js on tables? How "caching" works? Thanks for your answer
1 Réponse
+ 1
Hello,
The most common vanilla js libary functions like getElementById return an ovject, e.g. try to run this: typeof document.getElementById("#yourTableId"). The output should be "object". But you can use localStorage and sessionStorage only with strings, so I'd advise you to read all values of you table with a loop, then store it in sessionStorage.