Vaadin 7 – do something after displayed in browser

I have a problem where certain features I am using for, in this case, Grid, are not being triggered until AFTER they are visible on the screen. In other words, if I use a button to enable or disable these features, it works fine, but it won’t work when it is initially displayed. How can I can I trigger some action when the frontend is fully displayed and finished rendering?

I have tried addAttachListener and UI.getCurrent().access(), and both happen too early. In other words, if I set a break point, I get to the break point before my browser finishes rendering, maybe even before it starts rendering.

Maybe some JavaScript trick using JavaScript.getCurrent().addFunction and Page.getCurrent().getJavaScript().execute, where I call JavaScript.getCurrent().removeFunction after I do my special work? There has to be a better way, but I admit I have not tried this. Not even sure yet what JavaScript event to listen for yet.