Discourse is a SPA. You can’t just slap a script that now on the onLoad as that won’t work. You will need to hook into our API endpoints. Check Developer’s guide to Discourse Themes
Falco
(Falco)
9
Gerelateerde topics
| Topic | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
| Issues on loading a js asset from a Theme Component | 18 | 941 | 28 september 2023 | |
| Defer loading JavaScript in Themes and Components | 4 | 2001 | 7 april 2022 | |
| Question about web app loading | 1 | 106 | 25 maart 2025 | |
| Need help with theme component Github | 6 | 209 | 17 september 2024 | |
| When to switch themes/plugins to `.gjs`? | 27 | 698 | 5 januari 2026 |