Hi,
Is it possible to create a page whereby the buttons on that page cannot be pressed until the page is fully loaded.
My dynamic page has a lot of code and this is causing it to take a while to fully load, but the buttons appear before it has loaded completely. When these are pressed this only further adds to the lag that users experience.
Thanks for your help in advance
you can use the disable API on your buttons.
$w("#myButton").disable()
I know it is possible to disable buttons, but I want them to be disabled until the page is fully loaded, and then be enabled
This depends on what you call “loaded”…
There can be scripts that take long to run, async data fetching form external API, large images that need to load or other assets.
The only event that you can rely on is $w.onReady() but this is probably not what makes your loading slow after buttons are on screen.
You need to analyze what takes long to run and enable buttons manually afterwards.
OK, thanks for your reply