I have been coding a project with GWTQuery but I can't find a GWTQuery equivalent of $(document).ready(function).
I tried doing a:
$(new Function(){ /* Function comes here */ });
and although this does not produce a syntactical error, any code written inside it produces no results.
You need not to write any ready function.
As in the linked question, onModuleLoad() is effectively the same as the ready event. By default, onModuleLoad doesnt run until after all of the resources in the page have loaded.
if INW,you can directly start writing in onModuleLoad
And as shown in GWTQuery guide,we can start writing code in onModuleLoad.
public void onModuleLoad() {
//Hide the text and set the width and append an h1 element
$("#text").hide()
}