Message Boards

Google PageSpeed : How do I add [rel=preload] to the portal_normal ?

Cris1983 Cris1983, modified 3 Years ago.

Google PageSpeed : How do I add [rel=preload] to the portal_normal ?

New Member Post: 1 Join Date: 4/14/21 Recent Posts

Hi,

I'm using Liferay 7.3 and when I analyze my site with Google PageSpeed Insights, it tells me that there are "render-blocking resources":
CSS and JS files that Liferay uses (Modal.css, clay.css, etc.).
Google advises me to add <link rel=preload> and "async" or "defer" for JS files.However, I don't have access to these "declarations" in my theme's portal_normal header (I just have <@liferay_util["include"] page=top_head_include />). How can I do to change them in my theme ?
Thank you for your help.

Cris