mattdesl / mattdesl/inject-lr-script

Live reload option to put script in head or body

Open
#4 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hey Matt!

Elm just released 0.19 and part of that release is a new way for Elm to manage the DOM so that they have complete control over the DOM in the body tag. This completely wipes the livereload script out of the body tag when using it.

I did some testing and found out that if it is injected in the tag then nothing breaks. I will be happy to help with this, but could we add an option to this and then -> budo to inject it in the head tag instead of the body tag?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the HTML injection entry point and its existing options, then reproduce the issue with an Elm 0.19 page. Done means the live-reload script can be injected into either the head or body, with the selected location preserving the page's DOM behavior; check whether the requested option must also be forwarded to budo.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.