6

In many cases, I make some small changes to a JavaScript file, to see the result I have to reload the whole page.

Changes made in chrome's developer tool in "Source" tab do not save in file system.

So, is it possible to reload single JavaScript file alone?

Teymour
  • 1,832
  • 1
  • 13
  • 34
saravanabawa
  • 1,607
  • 1
  • 16
  • 23

1 Answers1

2

I can't think of much efficient way to do this but one way you can do this is by adding a breakpoint at the start of the JavaScript file or at the block you want to add or delete changes to.

Then when you reload, the debugger will pause on that breakpoint, and you can make any changes you want to the source, save the file and then run the debugger through the modified code.

But here's a thing that you should know: next reload the changes will vanish but at least it let's you run some slightly modified JavaScript client side codes.

Nitin Prakash
  • 328
  • 3
  • 15
  • I was able to just edit the script in the Sources tab and save! Had a session timeout issue that involved the computer going to sleep and waking back up so this solution works well once the issue finally does occur. – geekinit Feb 20 '20 at 13:26