// Write the data-page-initialized attribute in for all pages; it will be "true" when the page has no
// initializations (which is somewhat rare in Tapestry). When the page has initializations, it will be set to
// "true" once those initializations all run.
if (body != null)
{
body.attribute("data-page-initialized", Boolean.toString(!hasScriptsOrInitializations));
}
if (!hasScriptsOrInitializations)
{
return;