Do not execute js code during development

Hello! Let’s assume we need to develop through the Hugo server. The website has js scripts, for instance maps, chats, and similar things. This slows down the editor.

But commenting out the js code before each development is inconvenient and time-consuming.

Is there a solution to not execute js code during development?

If you include it in your site, it will be executed. If you don’t want to include it, see

Other Posibilities

To be able to do development builds with or without JavaScript:

define a special Environment ‘NoScript’ and test via hugo.Environment.
Use hugo server --environment NoScript in that case

another option would be to disable javascript in your browser for “http://localhost:1313/