Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to not auto run script? #7

Open
14725 opened this issue Oct 4, 2021 · 1 comment
Open

How to not auto run script? #7

14725 opened this issue Oct 4, 2021 · 1 comment

Comments

@14725
Copy link

14725 commented Oct 4, 2021

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?

@chrisdiana
Copy link
Owner

chrisdiana commented Oct 26, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants