{"id":28796364,"url":"https://github.com/westonruter/jetpack-stats-script-deprioritization","last_synced_at":"2026-05-02T05:31:25.634Z","repository":{"id":295696627,"uuid":"990438866","full_name":"westonruter/jetpack-stats-script-deprioritization","owner":"westonruter","description":"Adds `fetchpriority=low` to the Jetpack Stats script to reduce network contention with the loading of resources in the critical rendering path. Also removes the `dns-prefetch`.","archived":false,"fork":false,"pushed_at":"2025-06-02T14:48:43.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T16:12:04.684Z","etag":null,"topics":["wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","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/westonruter.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-26T05:52:00.000Z","updated_at":"2025-06-02T14:48:46.000Z","dependencies_parsed_at":"2025-05-29T15:16:06.213Z","dependency_job_id":null,"html_url":"https://github.com/westonruter/jetpack-stats-script-deprioritization","commit_stats":null,"previous_names":["westonruter/jetpack-stats-script-deprioritization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/westonruter/jetpack-stats-script-deprioritization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonruter%2Fjetpack-stats-script-deprioritization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonruter%2Fjetpack-stats-script-deprioritization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonruter%2Fjetpack-stats-script-deprioritization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonruter%2Fjetpack-stats-script-deprioritization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonruter","download_url":"https://codeload.github.com/westonruter/jetpack-stats-script-deprioritization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonruter%2Fjetpack-stats-script-deprioritization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260483964,"owners_count":23016090,"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":["wordpress","wordpress-plugin"],"created_at":"2025-06-18T03:39:50.912Z","updated_at":"2026-05-02T05:31:25.628Z","avatar_url":"https://github.com/westonruter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jetpack Stats Script Deprioritization #\n\nContributors: [westonruter](https://profile.wordpress.org/westonruter)  \nTested up to: 6.9  \nStable tag:   0.1.0  \nLicense:      [GPLv2](https://www.gnu.org/licenses/gpl-2.0.html) or later  \nTags:         performance\n\n## Description ##\n\nThis plugin deprioritizes the loading of the [Stats](https://jetpack.com/support/jetpack-stats/) script in the [Jetpack](https://wordpress.org/plugins/google-site-kit/) plugin to attempt to reduce network contention with loading resources in the critical rendering path (e.g. the LCP element image). It deprioritizes the script by:\n\n1. Adding `fetchpriority=\"low\"` to the `script` tag.\n2. Removing the `dns-prefetch` for `stats.wp.com`.\n\nThis does not primarily benefit Chrome since that browser already gives `async` scripts a priority of low. It does benefit Safari and Firefox, however, since they have a default medium/normal priority.\n\nFor an example of the performance impact for this change, see the [Site Kit GTag Script Deprioritization](https://github.com/westonruter/google-site-kit-gtag-script-deprioritization) plugin.\n\nI've [proposed](https://github.com/Automattic/jetpack/issues/43631) these changes for inclusion in Jetpack.\n\n## Installation ##\n\n1. Download the plugin [ZIP from GitHub](https://github.com/westonruter/jetpack-stats-script-deprioritization/archive/refs/heads/main.zip) or if you have a local clone of the repo run `npm run plugin-zip`.\n2. Visit **Plugins \u003e Add New Plugin** in the WordPress Admin.\n3. Click **Upload Plugin**.\n4. Select the `jetpack-stats-script-deprioritization.zip` file on your system from step 1 and click **Install Now**.\n5. Click the **Activate Plugin** button.\n\nYou may also install and update via [Git Updater](https://git-updater.com/).\n\n## Changelog ##\n\n### 0.1.0 ###\n\n* Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonruter%2Fjetpack-stats-script-deprioritization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonruter%2Fjetpack-stats-script-deprioritization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonruter%2Fjetpack-stats-script-deprioritization/lists"}