Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- Sent to them to render the preview pane. Same as pasting secrets anywhere on a browser.
Wait until you find out copying content on a computer might sent it over Wi-Fi/Bluetooth for sharing on other devices.
by bashy - Yes, that is for renderingby maxim-fin
- You're gonna be shocked how many input fields do this for various UX features :)by tvink
- HotJar and similar services are (were?) popular as well, and those record your mouse pointer movements and clicks as well, then displays that as an overlay over the application, so it's essentially a "screen recording" of your session of the application.
- Shopify does this. If you ever go to purchase a product on a Shopify 'site, and enter eg your e-mail address, it'll save it even if you decide to cancel and close the tab. Sometimes you receive spam from companies along the lines of marketing or "we noticed you didn't complete your purchase" type crap. Shit is rly invasive.by nusl
- because this is how autocomplete logic works i guess? Frontend cannot guess language and completions for youby keepo404
- Well, except for the cases when you happen to have the entire VM for your language running in the same tab where you program lives, and they both are all JS.
Probably harder, and wouldn't work equally well for everyone, but it would be possible to have "guess language and autocomplete" entirely client-side, especially when it comes to JavaScript of all languages.
- No autocomplete involved there.by maxim-fin
- Yeah I remember CodePen refreshing for me plenty of times.
- yes it can. all you need are some tokenizers for the languages you want to guess and once you derived the language, a few lookup tables to store variable name references in :)by mkgiga
- i made my own html playground that is browser only and shares preview via url hash because of these useless shenanigans of codepen, its not as featureful but i mostly use it for sharing single page html filesby pdyc
- For basic previewing I like to use https://htmledit.squarefree.com which has been online for years and does it all client side.by cph123
- There’s a detailed discussion of the same issue here https://www.reddit.com/r/webdev/comments/1rj1oac/i_planted_f...by nseskin