DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Developer Corner

Target group: Administrators / Developers

Hooks - End Function

After all files are loaded, CssJsAsyncLoader looks for the javascript function CssJsAsyncLoaderFiles.endFunction and calls it if it exists. You might want to use this for hiding a loading screen, as soon as everything is loaded/rendered.

Example

CssJsAsyncLoaderFiles.endFunction = function() {
  document.getElementById('loadingScreen').classList.add = 'hidden';
};

Hooks - Minify Javascript

When the minify parameter is set for javascript resources, the function \TYPO3\CMS\Core\Utility\GeneralUtility::minifyJavaScript() is called. As can be seen in https://typo3.org/api/typo3cms/class_t_y_p_o3_1_1_c_m_s_1_1_core_1_1_utility_1_1_general_utility.html the function can be configured for javascript minification.