{"id":21700140,"url":"https://github.com/wp-digital/wp-deferred-loading","last_synced_at":"2025-04-12T13:34:06.869Z","repository":{"id":56991748,"uuid":"102005742","full_name":"wp-digital/wp-deferred-loading","owner":"wp-digital","description":"Defer loading of stylesheets and JavaScript files.","archived":false,"fork":false,"pushed_at":"2020-06-24T12:07:57.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-05T01:32:52.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-digital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-31T13:51:50.000Z","updated_at":"2020-06-24T12:07:33.000Z","dependencies_parsed_at":"2022-08-21T10:10:45.069Z","dependency_job_id":null,"html_url":"https://github.com/wp-digital/wp-deferred-loading","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-deferred-loading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-deferred-loading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-deferred-loading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-deferred-loading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-digital","download_url":"https://codeload.github.com/wp-digital/wp-deferred-loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248573470,"owners_count":21126837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T20:13:00.650Z","updated_at":"2025-04-12T13:34:06.850Z","avatar_url":"https://github.com/wp-digital.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Deferred loading\n\n### Description\n\nWordPress plugin for deferred loading of JavaScript and CSS files.\n\n### Install\n\nClone this repo to `wp-content/plugins/`:\n\n````\ncd wp-content/plugins/\ngit clone git@github.com:innocode-digital/wp-deferred-loading.git\n````\n\nActivate **Deferred loading** from Plugins page \nor [WP-CLI](https://make.wordpress.org/cli/handbook/): `wp plugin activate wp-deferred-loading`.\n\nAlso you could install it as a [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins).\n\n### Usage\n\nTo defer JavaScript files, add to `functions.php` of theme:\n\n````\nadd_filter( 'deferred_loading_scripts', function () {\n    return [\n        // List of enqueued scripts.\n    ];\n} );\n````\n\nor\n\n````\nadd_filter( 'deferred_loading_scripts', function () {\n    return '*'; // All enqueued scripts.\n} );\n````\n\nTo defer CSS files, add to `functions.php` of theme:\n\n````\nadd_filter( 'deferred_loading_styles', function () {\n    return [\n        // List of enqueued styles.\n    ];\n} );\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-deferred-loading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-digital%2Fwp-deferred-loading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-deferred-loading/lists"}