Comment by kevincox

Comment by kevincox 6 days ago

1 reply

I don't think JS vs HTML would make any difference to caching.

If they are caching by URL you can have dynamic HTML generation or a JS generated page that is the same on every load.

If you are caching by the text then you can do the same for HTML or JS generated (you are just reading the text out of the DOM when the JS seems done).

freedomben 6 days ago

Yeah, js can be static or dynamic, so its not just whether it's js that matters. It's whether the content is added or modified after initial rendering that makes it dynamic.

Most js heavy pages retrieve data from APIs, and the static parts of the code is just layout and menus, which isn't the part that people care most about translating. Thus why GP said "added via Javascript later." The important part of that isn't the "Javascript" , it's the "later."