Giter VIP home page Giter VIP logo

live-reload's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

live-reload's Issues

Add custom third-side css

Hello! What about adding option to inject third-side css?
For example, I used this extension to write and test additional styles for site. I need to edit my own css; so, I inject localhosted .css, then monitoring it by your extension. Css is editable in IDE. When I save, it automatically updates on page.
It's be cool to do both part of operation in one extension

file:// URLs no longer work in chrome

Summary: file:// URLs used to work in chrome on linux, provided that the the user enabled "Allow access to file URLs" in chrome://extensions/. This stopped working fairly recently (March 2020?).

I've read #3 and the comment on the Chrome web store. #3 refers to firefox, so seems not directly relevant. The comment on the Chrome web store, which refers to #3, is undated. Because I know that file:// URLs have worked recently, that answer seems out-of-date.

I'm using Chrome 81.0.4044.92 on Ubuntu, with LivePage 2.7.0.

When I look at the background page, I see no messages at all (incl debug levels).

Thanks for this awesome extension. It's been extremely helpful for a couple of years and I'd love to recover this lost functionality.

Кэш браузера

Как при обновлении страницы учитывать кэш браузера?

Avoid scrolling to the top of the page while reloading (on Firefox)

Hello,

Currently, using firefox 102.0.1 on linux, the extension works correctly.
However, when the page reloads itself, the browser scrolls to the top of the page. I dislike that, I'd like the page to stay where it is.
My use case is generating and modifying html documentation using Sphinx and I'd like to see the document evolution where I scrolled, not the top of the page ;-)
I'm currently using live.js which does not scroll to the top.
Note that using chrome 103.0.5060.114 on linux does not have this scrolling side effect, so there's a workaround.
Thanks for your work.

All subdomains

Is there a way setup a script to work on all subdomains?

For example, I would like live reload to work on all pages on localhost, en.localhost, fr.localhost and de.localhost without making seperate scripts for each subdomain.

Add extension to Microsoft Edge Add-ons store

The new Microsoft Edge is based on Chromium, just like Google Chrome. Edge does have its own Add-ons store. Although adding extensions from the Chrome Web Store is possible too (after allowing), it has some advantages to also make the live-reload extension available in the Microsoft Edge Add-ons store.

If you're okay with it, I could do this for you. I have a Microsoft developer account with which I can submit extensions to the Edge Add-ons store. It would be published under my name, I unfortunately can't change that, but I'd of course provide links to this Github page. Thanks for letting me know what you think.

Live reload with URL ending with ".html#/" (reveal.js presentation)

I'm creating a presentation using Reveal.js. I use the option history so that when I reload the html file after a change, it doesn't jump back to the first slide but "remembers" where I was last time. This is achieved by automatically postfixing each slide's URL with #/n where n is a number. (The very first slide's postfix is simply #/) For example:

main.html#/ (1st slide)
main.html#/1 (2nd slide)
main.html#/2 (3rd slide)
main.html#/3 (4th slide)
…

The problem is that live reload doesn't work when this feature is active. When it's disabled and the URL is always set to main.html, it works perfectly.

I've also tried setting main.html* and main.#/ as the host file and a source, but it didn't work either.

I'm using the addon with Firefox 58.0.1 x64 for Linux and running a local Python server, as suggested in the addon description.

Consumes lots of energy

I'm running the latest Chrome, and I have 20 tabs open (using The Great Discarder extension too, nothing else). I turned on Live Reload, watching on for only *://localhost:888/* (which is turned on in only 2 tabs) and my macBook's fans are going crazy. Checking my battery, it displays the browser consuming significant energy when Live Reload is on.

Once I disable Live Reload extension, things go quiet again.

Not working for me with file:// URLs

(sorry I also was #2 but I used the wrong account)

It is not working for me unfortunately.

I'm using Doxygen 1.8.13 to generate .html, .css, .js and .png files to a folder lets say
file:///C:/html/

So in the PlugIn I configured the following Paths:
Host URL:
file:///C:/html/*.html

Source file URLs
file:///C:/html*

Monitor source URLs every [2] seconds

But after a new build from Doxgen the page gets never reloaded.

Not reloading for me

It is not working for me unfortunately.

I'm using Doxygen 1.8.13 to generate .html, .css, .js and .png files to a folder lets say
file:///C:/html/

So in the PlugIn I configured the following Paths:
Host URL:
file:///C:/html/*.html

Source file URLs
file:///C:/html*

Monitor source URLs every [2] seconds

But after a new build from Doxgen the page gets never reloaded.

[question] How to reload on backend change (not css/js)?

Hi @blaise-io ,

It is documented that, yes, live-reload can reload the page on backend change. And I did success to do that some weeks/months ago But as of today, I am not able to reload on backend change (not css, nor js).

How to reproduce

  1. Setup extension on localhost:4200/*, also tried with an additional localhost:4200/search/products (see screenshot)
  2. Change backend page (rendered html)
  3. No reload occurs.

Config:

image

Infos

  • Firefox 74.0
  • live-reload 1.8.0

ignore port number

I start a local server use serve . in local directory, and the server choose a random port number
I want to set a rule for all http://localhost:[any port number], How can I do it? Or must I add a port number in source file URLs?

PHP

How can you add support for PHP files?

ES Modules imported

/src/components/*.js
/src/app.js

app.js imports ES modules exported by js files under /src/components
However with the rules above, only app.js is being detected.
/src/components js files are being loaded as per network inspector

If I add script tags for those component js files, live-reload does pick up on them and detect changes. So changes are only detected if the script is referenced in the html markup. Not sure if this limitation is inherent to this implementation.

not reloading

Live Reload has suddenly stopped working… possibly due to new Chrome version?
Chrome Version 80.0.3987.106, MacOS 10.14.6

Extension is not working

I am using this in Google Chrome Version 117.0.5938.88 (Official Build) (arm64). I enabled live reload on a site I am developing, but it seems to do nothing when my CSS files change. I have configured

Configuration

Host URL: http://site.test/**
Source File: *://*.site.test/*
(ignore none)
2 seconds
Enabled:

  • Reload stylesheets without reloading the host page
  • Reload frames without reloading the host page
    (saved)

Trouble Shooting

  1. Turned off & on
  2. Uninstalled and reinstalled extension
  3. Updated chrome

More Information

  • Caching is disabled
  • Manually refreshing works
  • Other extensions like Easy Auto Refresh seem to work fine

long cooldown period ?

It seems to have a long cooldown period after it trigger a reload(works perfect the first time), then after around 30s it seems to detected there are something to monitor.

It only works when there is a 1 number next to extension icon, then you change file on disk, it reloads itself, then the 1 is gone, at this moment updating file on disk has no effect, it does not reload, after 30s, the 1 appears again, then it works again.. you just need to wait another 30s.

browser : google chrome

Not working for local pages (DDEV hosted, within WSL2)

I am running a page using DDEV in WSL2 i call them in Firefox (DEV) on Windows 10, like so:

http://d9-theme.ddev.site

I've set up the watcher like this:

Host-URL: http://d9-theme.ddev.site/*

Source-File-URLs:
http://d9-theme.ddev.site/themes/custom/digico/css/*.css
http://d9-theme.ddev.site/themes/custom/digico/js/*.js

I am able to open "http://d9-theme.ddev.site/themes/custom/digico/css/digico.global.min.css" so the configured paths should be correct.

I would really love to see this working.. gulp-livereload, what i've used in the past, didn't work for me withing WSL2.

Avoid scrolling to the top of the page while reloading (on Firefox)

Hello,
Currently, using firefox 102.0.1 on linux, the extension works correctly.
However, when the page reloads itself, the browser scrolls to the top of the page. I dislike that, I'd like the page to stay where it is.
My use case is generating and modifying html documentation using Sphinx and I'd like to see the document evolution where I scrolled, not the top of the page ;-)
I'm currently using live.js (which does not scroll to the top) but would rather use your extension without this side effect.
Anyway thanks for your work.

Exclusions

Can you add trace exclusions (e.g. for /wp-admin)?
If not, are you planning to introduce such an option?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.