N°3750 Allow to detect when ready scripts are done processing

In iTop 3.0.0 there are sometimes lots of scripts launched after domReady, so we needed something to know when those scripts are done !
This commit is contained in:
Pierre Goiffon
2021-03-02 09:23:27 +01:00
parent 225c176f71
commit 77d4613bd8
4 changed files with 66 additions and 8 deletions

View File

@@ -925,7 +925,7 @@ HTML;
'aCssInline' => $this->a_styles,
'aJsFiles' => $this->a_linked_scripts,
'aJsInlineOnInit' => $this->a_init_scripts,
'aJsInlineOnDomReady' => $this->a_ready_scripts,
'aJsInlineOnDomReady' => $this->GetReadyScripts(),
'aJsInlineLive' => $this->a_scripts,
// TODO 3.0.0: TEMP, used while developping, remove it.
'sSanitizedContent' => utils::FilterXSS($this->s_content),
@@ -1244,9 +1244,8 @@ EOF
*/
protected function OutputPrintable(): BlockPrintHeader
{
$oBlock= new BlockPrintHeader();
$oBlock = new BlockPrintHeader();
return $oBlock;
}
}