PHPackages                             themeplate/preload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. themeplate/preload

Abandoned → [themeplate/resource](/?search=themeplate%2Fresource)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

themeplate/preload
==================

ThemePlate preload resources

v1.0.2(4y ago)033GPL-3.0PHPPHP ^7.2|^8.0

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ThemePlate/Preload)[ Packagist](https://packagist.org/packages/themeplate/preload)[ RSS](/packages/themeplate-preload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

ThemePlate Preload *(Legacy)*
=============================

[](#themeplate-preload-legacy)

> *Check out the [Resource](https://github.com/ThemePlate/Resource) package.*

Usage
-----

[](#usage)

```
add_action( 'wp_head', array( 'ThemePlate\Preload', 'init' ), 2 );

add_filter( 'themeplate_preload_resources', function( $list ) {
	$list[] = array(
		'href' => 'https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_cJD3gTD_u50.woff2',
		'as'   => 'font',
		'type' => 'font/woff2',
	);

	return $list;
} );

add_filter( 'themeplate_preload_dependencies', function( $list ) {
	$list[] = 'jquery-core';
	$list[] = 'theme-script';

	return $list;
} );
```

### apply\_filters( 'themeplate\_preload\_resources', $list )

[](#apply_filters-themeplate_preload_resources-list-)

Preload resources manually specifying their attributes in an array format

- **$list** *(array)(Required)* List of wanted resources to preload

### apply\_filters( 'themeplate\_preload\_dependencies', $list )

[](#apply_filters-themeplate_preload_dependencies-list-)

Preload registered dependencies using their unique handles

- **$list** *(array)(Required)* List of registered dependencies to preload

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~304 days

Total

3

Last Release

1668d ago

PHP version history (2 changes)v1.0.0PHP ^7.2

v1.0.1PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/91095d431958c79a7384d515efec2686ca3cd1e1e1a5a42b680309b8e855355a?d=identicon)[kermage](/maintainers/kermage)

---

Top Contributors

[![kermage](https://avatars.githubusercontent.com/u/8350223?v=4)](https://github.com/kermage "kermage (22 commits)")

---

Tags

dependenciespreloadwordpresswordpress-dependencies

### Embed Badge

![Health badge](/badges/themeplate-preload/health.svg)

```
[![Health](https://phpackages.com/badges/themeplate-preload/health.svg)](https://phpackages.com/packages/themeplate-preload)
```

###  Alternatives

[tormjens/eventy

The WordPress filter/action system in Laravel

438912.9k16](/packages/tormjens-eventy)[symfonycasts/tailwind-bundle

Delightful Tailwind Support for Symfony + AssetMapper

1091.3M17](/packages/symfonycasts-tailwind-bundle)[kphoen/sitemap-bundle

Provides a way to create/generate a sitemap using Doctrine, etc.

2444.8k](/packages/kphoen-sitemap-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
