Reputation: 61
I am having this problem after the 25 January update.
When I edit files on an HTML document the Live Edit detects changes and makes changes to the browser. But in case of JavaScript the changes are not applied unless I refresh the browser (there is no point of live edit if I have to refresh the browser).
Upvotes: 0
Views: 586
Reputation: 93738
It's not a regression, it was always working this way: unlike changes in embedded JavaScript, changes in 'external' (linked) JavaScript code don't cause immediate page reloading: new code is loaded to the browser instantly, but the results of the change will be visible only when you do something to trigger this new code. For example if you change the onClick
handler and write new text in alert()
, you will see the new text after the click without reloading the page. Same for functions triggered by timer, for example. But if the JavaScript code is executed only on page load (and not on certain event), you have to manually reload the page to see the results - Live Edit doesn't force new code execution, it changes the code and not application state.
Upvotes: 1