There's more...

Note that your browser needs to support the Server Push feature; otherwise, your page will work as usual. So make sure you check if PushBuilder is null before using it and ensure all users will have the working application.

Note that JSF 2.3 is built over the Server Push feature, so if you just migrate your JSF application to a Java EE 8 compatible server, you get its performance boost for free!

Get Java EE 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.