You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, there seems to be no way to add a handler for the onload event to the body; while you can do it using do { b <- getBody; on (domEvent "load") b $ _ }, the handler only seems to be added after the body has already loaded.
The text was updated successfully, but these errors were encountered:
Hm, that's tricky. The body is initially empty and populated with elements only due to actions performed by the final argument to startGUI. So, by the time your Haskell code runs, the body is already loaded.
What do you need the onload event for, specifically?
At the moment, there seems to be no way to add a handler for the
onload
event to thebody
; while you can do it usingdo { b <- getBody; on (domEvent "load") b $ _ }
, the handler only seems to be added after thebody
has already loaded.The text was updated successfully, but these errors were encountered: