webden icon indicating copy to clipboard operation
webden copied to clipboard

How to not auto run script?

Open 14725 opened this issue 2 years ago • 1 comments

I wrote a massive of code which takes much time to run. I don't want it to run every time I edited the code but only when I go to the preview tab or the console. What can I do?

14725 avatar Oct 04 '21 10:10 14725

@14725 one way of handling this in the meantime is to wrap your code in a function and then you can easily comment it out like:

function init() {
  console.log('code running...');
}

// init();

We can add this setting on the roadmap though.

chrisdiana avatar Oct 26 '21 21:10 chrisdiana