Now this one took me long time and still no solution. I looked everything from Inline annotation, BoostrapListener and even PageConfigurator and still I cannot be able to place the script tag I want to the end of the body. I manage to place it on head, body start but not end.
I thought to manipulate the Jsoup document but listener is called before contents are loaded
@Override
public void modifyBootstrapPage(BootstrapPageResponse response) {
Document document = response.getDocument();
document.body().addClass("section-page");
document.body().append(getDropDownScript()); //prepend/append same head/body same
}
So what is the magical way to make your script end up just before body tag ends, save my life please.