+
Skip to content

Introduce CLI option "debounce" #168

@mojoaxel

Description

@mojoaxel

If reload is used with the --watch-dir option the browser gets reload instantly after a file-change occurs. This file-change might be triggered e.g. by a build tool, that empties the watched folder to refill it moments later with a new version of the app or web page. In this case the browser may reload the web page in an unready state which can cause errors in the browser.

To solve this problem I propose a new optional parameter --debounce wait which will postpone the reload until after wait milliseconds have elapsed since the last time a file-change occurred. This value could be st internally to 0 which would trigger a reload instantly on every change.

Opinions on this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载