Just in case anyone doesn't already know, you can do that with a data uri as well:
data:text/html, My%20small%20website Look,%20it's%20real! You can use a data uri generator to base64-encode it, if you want. Advantages of smolsite: - Zip might let you fit a bit more than a data uri - Some JS APIs would work on a smolsite url, but wouldn't work in a data uri
(Un)fortunately web browsers [1] and URL shorteners block opening and redirecting to data URLs so they are useful mostly as bookmarks in the web browser.
Comments (181) 65 threads
Show all comments
Showing thread 2 of 65
data:text/html,
My%20small%20website
Look,%20it's%20real!
You can use a data uri generator to base64-encode it, if you want.
Advantages of smolsite:
- Zip might let you fit a bit more than a data uri
- Some JS APIs would work on a smolsite url, but wouldn't work in a data uri
Continue this thread — 1 reply
In before someone writes a smolsite to install a service worker on the domain that sends analytics for all other smolsites to their own server
> data:text/html,
New Note
I added some basic styles so I can screenshare :D
Also in most browsers, CTRL + B, I and U work in contenteditable divs.
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_...