How to properly initialize custom javascript for ui elements #2350
Closed
GeorgeZard
started this conversation in
General
Replies: 1 comment 2 replies
|
Hi @GeorgeZard, Thanks for trying out FluentCMS. We have same issue for javascript too. and didn't found a good solution for this problem yet. the feel free to open discussions and issues when you have questions & suggestions. You can join our discord if you like (https://discord.gg/WyqYuC6YbY) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello and a delayed Happy New Year!
I have finished writing my own HTML template to add as separate code blocks for simple ui stuff like hero pages and etc. etc.
And i have hit a certain curious block.
Technical Question
I'm seeking guidance on how to properly initialize custom javascript code that i have created for simple ui interaction like loadingbars and some canvas elements.
The main problem i am hit with is that currently i load my scripts inside the layout pages (MainLayout and EditLayouts) in order to get them somehow working but only for a moment. The code block ui works properly for a while then after a micro refresh the scripts are completely dead.
Showcase of Problem
You can see the javascript working as intended and then with a microrefresh it get's broken.

Can somoene help?
I can gladly provide anything needed to further help with understanding the probelm
I'm still in the learning phase of understanding the system's complete functionality, and I appreciate your patience as I work through this process.
Thank you again for your continued support, and please maintain this excellent level of work!
All reactions