Hi,
Is there any way to add <link rel=preload> to some resources in T4 Framework?
Joomla! 3.9.12 T4 System 1.0.2 JA Stark template 1.0.2
Thanks, Regards
PS: T4 is great. Fast. Very customizable. Nice work!!!
Hi catbusin
May I know which resource you want to add this preload value?
saguaros Hi Saguaros
In this case the resource is "plugins/system/t4/themes/base/vendors/font-awesome5/webfonts/fa-brands-400.woff2" but in other cases it may be other resources?
In general I try to preload resources like fonts or non critical css(when it is possible).
In other cases I add rel="preconnect" to some external domains. In this case can I override "/plugins/system/t4/themes/base/html/layouts/t4/index.php" ?
Thanks Regards Cosmin
Hi Cosmin,
Let me check if it can be done & will get back to you.
Hi Saguaros,
Still no solution to this?
You can override the index.php file by copying this file:
/plugins/system/t4/themes/base/html/layouts/t4/index.php
paste into template folder:
/templates/your_template/html/layouts/t4/
and add the preload link as you wish.