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 | 19 | 903 | 28 september 2023 | |
| Defer loading JavaScript in Themes and Components | 4 | 1985 | 7 april 2022 | |
| Question about web app loading | 2 | 95 | 25 april 2025 | |
| Need help with theme component Github | 7 | 176 | 17 september 2024 | |
| When to switch themes/plugins to `.gjs`? | 27 | 603 | 5 januari 2026 |