Settings

Theme

"Live Reload"-like feature with a single line of javascript

vjk2005.tumblr.com

5 points by vjk2005 12 years ago · 2 comments

Reader

_pius 12 years ago

Very clever technique.

You may be able to improve it slightly depending on the particulars of your workflow. For example, you could do the refresh conditionally based on other factors, say, the protocol or pathname so that even if the line did make it into production, you'd still be ok.

Even better still would be to inject that javascript only in the development environment.

gregorkas 12 years ago

That's a great solution. Looking forward to trying it out. Thanks!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection