I tried it out but it doesn’t load any js file. I just made a simple js file in my www folder called testfile.js, and attempted to load it in the top with the raw editor inside home asssitant like so:
resources:
- type: js
url: /local/testfile.js
The file only contains console.log("test"); but nothing ever shows in my chrome console, and the network tab doesn’t show any file with that name.
Works for me.
Can you open the file with <your_ha_ip>:8123/local/testfile.js ?
What HA version are you on?
After 0.107.x the resources are loaded from configuration.yaml if you’re in yaml mode, or with the UI (Configuration -> Lovelace Dashboards -> Resources)