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 | 935 | 28 september 2023 | |
| Defer loading JavaScript in Themes and Components | 4 | 1999 | 7 april 2022 | |
| Question about web app loading | 1 | 105 | 25 maart 2025 | |
| Need help with theme component Github | 6 | 203 | 17 september 2024 | |
| When to switch themes/plugins to `.gjs`? | 27 | 690 | 5 januari 2026 |