The fastest way to load pages in WordPress.
Hyperdrive is available on Packagist.
- Installing with Composer:
composer require comfusion/hyperdrive
Hyperdrive docs available online at: http://hyperdrive.habd.as/
- Only dequeue scripts if browser supports Fetch for backwards compatibility with older browsers
- Integrate localization behaviors as shown here.
- Test with a few different themes and open bugs and needed
- Integrate User Interface created by @wedangsu
- Ensure interface gives ability to defer script execution for scripts querying the DOM until after the DOM is fully parsed.
- Give ability to perform grouping, so non-jQuery scripts can download and execute without waiting for jQuery.
- Add ability to load icon fonts and non-critical CSS (also possible with Fetch Inject)
- Build API enabling theme authors greater control
Hyperdrive uses a performance optimization technique known as Fetch Injection, available in browsers with support for the Fetch API. Fetch is a modern replacement for Ajax.
Please open issues when creating PRs and PR against the issue to close it. This helps establish and separate a need (the issue) from the implementation (the pull), resulting in more robust solutions and ensuring current issues are considered before changes are requested.
Additionally:
- All code should follow WordPress PHP Documentation Standards.
- Pull requests should be linted prior to submission using the
lintscript in the Composer manifest file. If you have trouble running the linter ensure you have installed WordPress Coding Standards.
Though not required, if you plan on contributing code, please consider installing EditorConfig for your editor or IDE to help normalize your code automagically.
