PHP code example of innocode-digital / wp-deferred-loading
1. Go to this page and download the library: Download innocode-digital/wp-deferred-loading library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
innocode-digital / wp-deferred-loading example snippets
`
add_filter( 'deferred_loading_scripts', function () {
return [
// List of enqueued scripts.
];
} );
`
add_filter( 'deferred_loading_scripts', function () {
return '*'; // All enqueued scripts.
} );
`
add_filter( 'deferred_loading_styles', function () {
return [
// List of enqueued styles.
];
} );