The only difference between SSG and dynamic backends is the point in time that you're generating cacheable static content.
The only difference between SSG and dynamic backends is the point in time that you're generating cacheable static content.
I do. Partying like it's 1999.
Say you have a menu + banner at the top. It's its own document. looking at the source it all makes perfect sense. The css only affects this frame so you can just target the links image or list items directly without a class or id.
Then you click on the links (at the top) and they open different side menus that are also amazingly simple documents.
Clicking on those opens all kinds of things in the main area. PDF images, video, widgets, error pages, EVEN DIFFERENT DOMAINS!
Or [say] music, in a small frame on the side.
The big frameset issue was that the address bar didn't show a useful url and opening a link in a new tab was a problem. These are now easily fixed by pushstate and you can also rebuild the frameset in a new tab if the user tries to open a link in a new tab.
As there is nothing dynamic about the documents they are easily cached. Clicking around feels like an application!
You can also reuse the side menu frame to open diagrams and charts to accompany the text without scrolling up and down like a madman.
On mobile you simply don't load the frame set. The menu is the mobile application.
We also got <details> and <summary> adding even more dept to the menus entirely without js.
I still have to one day make a website with it.
The top arguments here[1] are:
> 1) Frames prevent users from properly bookmarking pages.
Not true anymore since we have History.pushState() and History.replaceState()
> 2) Frames present challenges for printing web pages.
This is just funny in 2024.
> 3) Users coming from search engines may not have access to navigational elements if they are located in another frame — they are directed to only that frame the search engine found the text in.
The top page is actually so simple that if pages that should be framed are loaded on their own they can can just act like a frameset and load themselves into one of the frames[2] (or redirect to the frame set)
if(window.self == window.top){
frameset = document.createElement('frameset');
frameset.setAttribute('cols', '50%, 50%');
frameset.innerHTML = `
<frame src="https://example.com" />
<frame src="https://example.com" />`;
document.body.replaceWith(frameset);
}
[0] - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fr...[1] - https://stackoverflow.com/questions/4263509/why-are-frames-d...
Having base64 images within a document encoded saves so much faff of CDNs, excess latency and bandwidth. Gives greater control and more archivability.
Sure the page file size jumps up but web servers enjoy serving large files. Your not losing anything else, you would still be serving xMB from some image service. Possibly double.
If we can serve 8mb SPA applications, we can serve 8mb Base64 images within html files.