using event id instead of pubkey and #d

415 bytes

data:text/html;nos.lol;8204e92ade181a24ab0206144fe5c0bf551e1942810f98bbb6c0f294628699fd;base64,PHNjcmlwdD5kPWRlY29kZVVSSUNvbXBvbmVudCxtPXdpbmRvdy5tfHxsb2NhdGlvbi5ocmVmLm1hdGNoKC8oW147XSspL2cpLHM9bmV3IFdlYlNvY2tldCgid3NzOi8vIitkKG1bMV0pKSxzLm9ub3Blbj0oKT0+e3Muc2VuZCgnWyJSRVEiLCJxIix7ImlkcyI6WyInK2QobVsyXSkrJyJdfV0nKX0scy5vbm1lc3NhZ2U9ZT0+e2RvY3VtZW50LndyaXRlKEpTT04ucGFyc2UoZS5kYXRhKVsyXS5jb250ZW50KX08L3NjcmlwdD4K

Reply to this note

Please Login to reply.

Discussion

we dont need to decodeURIComponents, lets just do is smaller

367 bytes

data:text/html;nos.lol;8204e92ade181a24ab0206144fe5c0bf551e1942810f98bbb6c0f294628699fd;base64,PHNjcmlwdD5tPWxvY2F0aW9uLmhyZWYubWF0Y2goLyhbXjtdKykvZykscz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK21bMV0pLHMub25vcGVuPSgpPT57cy5zZW5kKCdbIlJFUSIsInEiLHsiaWRzIjpbIicrbVsyXSsnIl19XScpfSxzLm9ubWVzc2FnZT1lPT57ZG9jdW1lbnQud3JpdGUoSlNPTi5wYXJzZShlLmRhdGEpWzJdLmNvbnRlbnQpfTwvc2NyaXB0Pgo=

this is the code needed to load html page from nostr,

can we make it smaller?

```html

```

moving all the params from url to code, we can make it to 326 bytes

data:text/html;base64,PHNjcmlwdD5zPW5ldyBXZWJTb2NrZXQoIndzczovL25vcy5sb2wiKSxzLm9ub3Blbj0oKT0+e3Muc2VuZCgnWyJSRVEiLCJxIix7ImlkcyI6WyI4MjA0ZTkyYWRlMTgxYTI0YWIwMjA2MTQ0ZmU1YzBiZjU1MWUxOTQyODEwZjk4YmJiNmMwZjI5NDYyODY5OWZkIl19XScpfSxzLm9ubWVzc2FnZT1lPT57ZG9jdW1lbnQud3JpdGUoSlNPTi5wYXJzZShlLmRhdGEpWzJdLmNvbnRlbnQpfTwvc2NyaXB0Pgo=

it seems base64 encoding in data uri is not necessary

this is just 257 bytes

data:text/html;nos.lol,

249 bytes

data:text/html,

and now we have additional benefit that the note id and relay url are in clear text, can be configured in url again