Delay between browserNavigateComplete and actual url load

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Delay between browserNavigateComplete and actual url load

Post by simon.schvartzman » Mon Sep 28, 2020 7:29 pm

Hi, after spending a good time trying to detect when a page has really finished loading on the Browser Widget I put together this very simple attached stack

It seems the message I should be using is "browserNavigateComplete" but according to one of the definitions in the dictionary (there are two definitions :D ):
The browserNavigateComplete message is sent to the widget's script object when the browser successfully navigates to a new page. The pUrl parameter contains the URL of the new page.
So it doesn't necessarily means that the page has really been loaded on the screen.

As I'd like the user to be unable to do anything until the page is in fact fully loaded and completely shown on the screen I don't know how to proceed.

Not sure what am I missing and I will really appreciate suggestions

Regards

p.s.: I'm on LC 9.6.1
Attachments
BrowserBug.zip
(2.01 KiB) Downloaded 153 times
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Talking LiveCode”