How do I choose the best integration method?

Background: To communicate with your browsers, LiveReloads needs its JavaScript code to be injected into your web pages. (If you’re curious, see more details in How does LiveReload talk to my browsers?)

There are 3 ways to arrange that:

  1. Either add a script tag into your HTML code manually,
  2. or install a browser extension (that, when activated, adds the script tag to the visited pages on the fly),
  3. or use a plugin for your web framework (that adds the script tag on the fly when serving requests), currently only available for Rails/Rack.

So how do you choose?

Use method 1 (insert a tag) or method 3 (framework plugin) if:

Use method 2 (browser extension) if:

You can use both if you need to; the script tag you add manually will happily cooperate with the browser extension.

Ready to act? See one of these articles for detailed instructions:

  1. How do I add the SCRIPT tag manually?
  2. How do I install and use the browser extensions?
  3. Does my framework have a LiveReload plugin?