G
G
Gregory2020-07-09 22:52:05
JavaScript
Gregory, 2020-07-09 22:52:05

PHPStorm - LiveEdit not updating on JavaScript change?

Good evening!
Installed LiveEdit 201.7223.18 in PHPStorm 2020.1.2
When changing HTML and Scss-CSS, it updates the page
But when it changes in the JS file, it does not update the page
What can be?
The settings indicate an update when HTML CSS JS changes, but it does not update
5f07753179e92966188661.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Maslov, 2020-07-17
@s0xzwasd

There is a special algorithm for updating the page when changing in JS files, which does not always work as in the case of changing HTML / CSS files.
The new code is loaded into the browser instantly, but the results of the change will only be visible when you do something to trigger those changes.
For example, if you change the onClick handler and write new text to alert(), you will see the new text after the button is clicked without reloading the page. This is also relevant for functions that work by setting a timer (setInterval and so on). However, if the JS is only executed on page load (not on a specific event like I described above), then you need to manually refresh the page to see the results (no new code is forced to run).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question