Why app doesn't load js file?

my file structure is:
-index.py
-assets/
–script.js
–styles.css

the css file is loaded normally and the js file is not

Hi,

Could you give us some context of what you are using the script.js for and how do you know it is not loading?

For instance, have you tried to see in the developer tools “Sources” tab if the script is not under the “assets” folder with the css?