Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit bc19edb

Browse files
authored
Merge pull request #60 from shinsenter/develop
Bug fixes
2 parents abc844b + 1ec54a3 commit bc19edb

25 files changed

+458
-477
lines changed

README.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,11 @@
5252

5353
### Install with composer
5454

55-
Install the latest version
56-
5755
```bash
5856
composer require shinsenter/defer.php
5957
```
6058

6159

62-
Install older version (for PHP <7.1.3)
63-
64-
```bash
65-
composer require shinsenter/defer.php:^2.0
66-
```
67-
68-
6960
### Load the library into your program
7061

7162
```php
@@ -77,11 +68,13 @@ require_once __DIR__ . '/vendor/autoload.php';
7768
```
7869

7970

80-
### Backward compatible
71+
### Requirements
72+
73+
This library requires PHP 5.6 or above so you need this version or the latest version of PHP installed on your system.
8174

82-
This library recommends that the server is running PHP version 7.3 or greater for better performance and support.
75+
It recommends that the server is running PHP version 7.3+ or above for better performance and supports.
8376

84-
Library's options of v2.x version are not backward compatible with previous release's options. Please read the library manual for more details.
77+
Library options from v2.x are not backward compatible with previous release's options. Please read [library manual](#options) for more details.
8578

8679

8780
## Usages
@@ -109,7 +102,7 @@ var_dump($result2);
109102
```
110103

111104

112-
### Customize the options of the library
105+
### Options
113106

114107
```php
115108
// Include the library
@@ -132,7 +125,7 @@ $options = [
132125
'manually_add_deferjs' => false,
133126

134127
// URL to defer.js javascript file.
135-
// Default: https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.1.0/dist/defer_plus.min.js
128+
// Default: https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.3.0/dist/defer_plus.min.js
136129
'deferjs_src' => \AppSeeds\DeferConstant::SRC_DEFERJS_CDN,
137130

138131
// URL to javascript contains fixes.
@@ -375,16 +368,16 @@ Only few options of this library are applicable to AMP pages (minifying HTML con
375368

376369
### Defer.js
377370

378-
https://github.com/shinsenter/defer.js/
371+
[https://github.com/shinsenter/defer.js/](https://github.com/shinsenter/defer.js/)
379372

380373
🥇 A super small, super efficient library that helps you lazy load almost everything like images, video, audio, iframes as well as stylesheets, and JavaScript.
381374

382375

383376
### Wordpress plugin
384377

385-
https://github.com/shinsenter/defer-wordpress/
378+
[https://github.com/shinsenter/defer-wordpress/](https://github.com/shinsenter/defer-wordpress/)
386379

387-
⚡️ A native, blazing fast lazy loader. ✅ Legacy browsers support (IE9+). 💯 SEO friendly. 🧩 Lazy load almost anything.
380+
⚡️ A native, blazing fast lazy loader. ✅ Legacy browsers support (IE9+). 💯 SEO friendly. 🧩 Lazy-load everything.
388381

389382

390383
### Laravel package

0 commit comments

Comments
 (0)