Join GitHub today
[Documentation] primefaces.MOVE_SCRIPTS_TO_BOTTOM / move above the fold scripts to the bottom #2888
it's a new feature, implemented via a custom ResponseWriterWrapper, which does the following:
overall it improves the visible loading of the page a lot + it reduced the generated html up to 5% in my application
it can be activated via primefaces.MOVE_SCRIPTS_TO_BOTTOM =true in the web.xml
we should really promote it, it makes the rendering really really really fast.
It will also remove the white flickering between page navigation like you can see for example on the online Omega Layout demo. (https://www.primefaces.org/omega/sample.xhtml and click on the different items under the components menu item)
It is caused by one of the jquery-plugins.
I found the statement in question which causes the flickering.
It WAS in the jquery.ui.js file. But that code part is removed for issue #2233 (upgrade JQuery UI to 1.12, date 9 Aug 2017)
And indeed, with the current SNAPSHOT, there is no flickering anymore. Without using the MOVE_SCRIPTS_TO_BOTTOM.