mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 01:54:12 +02:00
Added an option for pre-loading of library assets. More info: https://web.dev/uses-rel-preload/
This commit is contained in:
@@ -713,6 +713,23 @@ class core_library
|
||||
// Override library path.
|
||||
'library_path' => '{e_WEB}lib/font-awesome',
|
||||
'path' => '4.7.0',
|
||||
// preload in header using <link> tag. for speed optimization.
|
||||
'preload' => array(
|
||||
0 => array(
|
||||
'as' => 'style',
|
||||
'type' => '',
|
||||
'path' => 'css/font-awesome.min.css',
|
||||
'crossorigin' => false,
|
||||
'browsercache' => true, // add the generated ?xxxxxx to the path.
|
||||
),
|
||||
1 => array(
|
||||
'as' => 'font',
|
||||
'type' => 'font/woff2',
|
||||
'path' => 'fonts/fontawesome-webfont.woff2?v=4.7.0',
|
||||
'crossorigin' => false,
|
||||
'browsercache' => false,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user