Where to place javascript?

Hello

In plain html/javascript programming I put all my js code in the html code of the different pages or load .js-files.

What ist best-practise in f7?

  • Have one app.js file with all code of all pages?
  • Have different.js files and include all of them on the homepage.html?
  • Include js oder js-files on different pages?

Thank you for your thoughts.

Léo

Best practice is to use Router Components Router Component | Framework7 Documentation and keep all relevant logic separated