Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Test on PHP 7.2 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Jan 19, 2018
1 parent a3a8158 commit e1e0928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,7 @@ matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
fast_finish: true

before_install:
Expand Down
8 changes: 4 additions & 4 deletions README.md
@@ -1,6 +1,6 @@
# Mako Pusher

Pusher lets you use `HTTP2 server push` and `prefetching` in your applications.
Pusher enables you to easily implement `preloading`, `prefetching`, `prerendering`, `dns-prefetching` and `preconnecting` in your applications.

## Usage

Expand All @@ -16,17 +16,17 @@ You can tell the client to preload files your assets.

$pusher->preload('/assets/css/style.css');

> Preloading requires a HTTP2 server with push support.
> Preloading requires a HTTP2 server with push support (e.g. Apache 2.4.24+).
You can prefetch resources that you think the user will need next.
You can tell the browser to prefetch resources that you think the user will need next.

$pusher->push('https://example.org/image.jpg', ['prefetch', 'as' => 'image']);

// You can also use the "prefetch" convenience method

$pusher->prefetch('https://example.org/image.jpg', ['as' => 'image']);

You can prefetch and render resources that you think the user will visit next.
You can tell the browser to prefetch and render resources that you think the user will visit next.

$pusher->push('https://example.org/next', ['prerender']);

Expand Down

0 comments on commit e1e0928

Please sign in to comment.