MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/eiian3/java_on_the_desktop/fcz2jnd
r/java • u/[deleted] • Jan 01 '20
40 comments sorted by
View all comments
Show parent comments
1
How does this correct needing to update 100 uses of a static HTML and CSS banner?
The caching won’t save you in that instance.
1 u/pjmlp Jan 03 '20 Browser only sees 1 use. 1 u/[deleted] Jan 03 '20 No it doesn’t? They’re distinct elements. I’m not talking about an image. 1 u/pjmlp Jan 04 '20 A full page can be cached, just like page elements as well. 1 u/[deleted] Jan 04 '20 This is patently false. You have to be trolling.<div className="foo">My Banner</div>Will absolutely not be cached on separate pages because the browser does not know that the elements are indistinct. 2 u/pjmlp Jan 04 '20 edited Jan 04 '20 Another one that never learned about SSR component frameworks.The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.And then there are Web Components as well, if something more dynamic is required.
Browser only sees 1 use.
1 u/[deleted] Jan 03 '20 No it doesn’t? They’re distinct elements. I’m not talking about an image. 1 u/pjmlp Jan 04 '20 A full page can be cached, just like page elements as well. 1 u/[deleted] Jan 04 '20 This is patently false. You have to be trolling.<div className="foo">My Banner</div>Will absolutely not be cached on separate pages because the browser does not know that the elements are indistinct. 2 u/pjmlp Jan 04 '20 edited Jan 04 '20 Another one that never learned about SSR component frameworks.The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.And then there are Web Components as well, if something more dynamic is required.
No it doesn’t? They’re distinct elements. I’m not talking about an image.
1 u/pjmlp Jan 04 '20 A full page can be cached, just like page elements as well. 1 u/[deleted] Jan 04 '20 This is patently false. You have to be trolling.<div className="foo">My Banner</div>Will absolutely not be cached on separate pages because the browser does not know that the elements are indistinct. 2 u/pjmlp Jan 04 '20 edited Jan 04 '20 Another one that never learned about SSR component frameworks.The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.And then there are Web Components as well, if something more dynamic is required.
A full page can be cached, just like page elements as well.
1 u/[deleted] Jan 04 '20 This is patently false. You have to be trolling.<div className="foo">My Banner</div>Will absolutely not be cached on separate pages because the browser does not know that the elements are indistinct. 2 u/pjmlp Jan 04 '20 edited Jan 04 '20 Another one that never learned about SSR component frameworks.The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.And then there are Web Components as well, if something more dynamic is required.
This is patently false. You have to be trolling.
<div className="foo">My Banner</div>
Will absolutely not be cached on separate pages because the browser does not know that the elements are indistinct.
2 u/pjmlp Jan 04 '20 edited Jan 04 '20 Another one that never learned about SSR component frameworks.The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.And then there are Web Components as well, if something more dynamic is required.
2
Another one that never learned about SSR component frameworks.
The browser only sees the full rendered page, your MyBanner would be a component on the SSR framework.
Plus there is service workers to cache stuff on the index db, and application manifests to control browser caching.
And then there are Web Components as well, if something more dynamic is required.
1
u/[deleted] Jan 03 '20
How does this correct needing to update 100 uses of a static HTML and CSS banner?
The caching won’t save you in that instance.