Skip to content

Commit 565fbe3

Browse files
authored
Save more bytes (#105)
1 parent a6a3c92 commit 565fbe3

16 files changed

+101
-167
lines changed

.github/dependabot.yml

-25
This file was deleted.

.github/workflows/codeql-analysis.yml

+4-48
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,23 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
13-
142
on:
153
push:
164
branches: [ master ]
175
pull_request:
18-
# The branches below must be a subset of the branches above
196
branches: [ master ]
207
schedule:
218
- cron: '27 22 * * 3'
22-
239
jobs:
2410
analyze:
2511
name: Analyze
2612
runs-on: ubuntu-latest
27-
2813
strategy:
2914
fail-fast: false
3015
matrix:
3116
language: [ 'javascript' ]
32-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33-
# Learn more:
34-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35-
3617
steps:
37-
- name: Checkout repository
38-
uses: actions/checkout@v2
39-
40-
# Initializes the CodeQL tools for scanning.
41-
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
18+
- uses: actions/checkout@v2
19+
- uses: github/codeql-action/init@v2
4320
with:
4421
languages: ${{ matrix.language }}
45-
# If you wish to specify custom queries, you can do so here or in a config file.
46-
# By default, queries listed here will override any specified in a config file.
47-
# Prefix the list here with "+" to use these queries and those in the config file.
48-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49-
50-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51-
# If this step fails, then you should remove it and run the build manually (see below)
52-
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v1
54-
55-
# ℹ️ Command-line programs to run using the OS shell.
56-
# 📚 https://git.io/JvXDl
57-
58-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59-
# and modify them (or add more) to build your code if your project
60-
# uses a compiled language
61-
62-
#- run: |
63-
# make bootstrap
64-
# make release
65-
66-
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v1
22+
- uses: github/codeql-action/autobuild@v2
23+
- uses: github/codeql-action/analyze@v2

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editor.rulers": [80, 100, 120],
3+
"editor.trimAutoWhitespace": true,
4+
"files.encoding": "utf8",
5+
"files.eol": "\n"
6+
}

CONTRIBUTING.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The [Project Team](#join-the-project-team) looks forward to your contributions.
3333

3434
If you have a question about this project, how to use it, or just need clarification about something:
3535

36-
* Open an Issue at https://github.com/shinsenter/defer.js/issues
36+
* Open an Issue at https://code.shin.company/defer.js/issues
3737
* Provide as much context as you can about what you're running into.
3838
* Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant. If not, please be ready to provide that information if maintainers ask for it.
3939

@@ -47,7 +47,7 @@ Once it's filed:
4747

4848
If you run into an error or bug with the project:
4949

50-
* Open an Issue at https://github.com/shinsenter/defer.js/issues
50+
* Open an Issue at https://code.shin.company/defer.js/issues
5151
* Include *reproduction steps* that someone else can follow to recreate the bug or error on their own.
5252
* Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant. If not, please be ready to provide that information if maintainers ask for it.
5353

@@ -63,7 +63,7 @@ Once it's filed:
6363

6464
If the project doesn't do something you need or want it to do:
6565

66-
* Open an Issue at https://github.com/shinsenter/defer.js/issues
66+
* Open an Issue at https://code.shin.company/defer.js/issues
6767
* Provide as much context as you can about what you're running into.
6868
* Please try and be clear about why existing features and alternatives would not work for you.
6969

@@ -106,7 +106,7 @@ To contribute documentation:
106106
* Make sure your changes are formatted correctly and consistently with the rest of the documentation.
107107
* Re-read what you wrote, and run a spellchecker on it to make sure you didn't miss anything.
108108
* Write clear, concise commit message(s) using [conventional-changelog format](https://github.com/conventional-changelog/conventional-changelog-angular/blob/master/convention.md). Documentation commits should use `docs(<component>): <message>`.
109-
* Go to https://github.com/shinsenter/defer.js/pulls and open a new pull request with your changes.
109+
* Go to https://code.shin.company/defer.js/pulls and open a new pull request with your changes.
110110
* If your PR is connected to an open issue, add a line in your PR's description that says `Fixes: #123`, where `#123` is the number of the issue you're fixing.
111111

112112
Once you've filed the PR:
@@ -132,7 +132,7 @@ To contribute code:
132132
* Write tests that verify that your contribution works as expected.
133133
* Write clear, concise commit message(s) using [conventional-changelog format](https://github.com/conventional-changelog/conventional-changelog-angular/blob/master/convention.md).
134134
* Dependency updates, additions, or removals must be in individual commits, and the message must use the format: `<prefix>(deps): PKG@VERSION`, where `<prefix>` is any of the usual `conventional-changelog` prefixes, at your discretion.
135-
* Go to https://github.com/shinsenter/defer.js/pulls and open a new pull request with your changes.
135+
* Go to https://code.shin.company/defer.js/pulls and open a new pull request with your changes.
136136
* If your PR is connected to an open issue, add a line in your PR's description that says `Fixes: #123`, where `#123` is the number of the issue you're fixing.
137137

138138
Once you've filed the PR:
@@ -153,7 +153,7 @@ Sometimes, the `support` label will be added to things that turn out to actually
153153

154154
In order to help other folks out with their questions:
155155

156-
* Go to the issue tracker and [filter open issues by the `support` label](https://github.com/shinsenter/defer.js/issues?q=is%3Aopen+is%3Aissue+label%3Asupport).
156+
* Go to the issue tracker and [filter open issues by the `support` label](https://code.shin.company/defer.js/issues?q=is%3Aopen+is%3Aissue+label%3Asupport).
157157
* Read through the list until you find something that you're familiar enough with to give an answer to.
158158
* Respond to the issue with whatever details are needed to clarify the question, or get more details about what's going on.
159159
* Once the discussion wraps up and things are clarified, either close the issue, or ask the original issue filer (or a maintainer) to close it for you.
@@ -170,7 +170,7 @@ Some notes on picking up support issues:
170170

171171
One of the most important tasks in handling issues is labeling them usefully and accurately. All other tasks involving issues ultimately rely on the issue being classified in such a way that relevant parties looking to do their own tasks can find them quickly and easily.
172172

173-
In order to label issues, [open up the list of unlabeled issues](https://github.com/shinsenter/defer.js/issues?q=is%3Aopen+is%3Aissue+no%3Alabel) and, **from newest to oldest**, read through each one and apply issue labels according to the table below. If you're unsure about what label to apply, skip the issue and try the next one: don't feel obligated to label each and every issue yourself!
173+
In order to label issues, [open up the list of unlabeled issues](https://code.shin.company/defer.js/issues?q=is%3Aopen+is%3Aissue+no%3Alabel) and, **from newest to oldest**, read through each one and apply issue labels according to the table below. If you're unsure about what label to apply, skip the issue and try the next one: don't feel obligated to label each and every issue yourself!
174174

175175
Label | Apply When | Notes
176176
--- | --- | ---
@@ -205,7 +205,7 @@ To clean up issues and PRs:
205205
* not marked as `starter` or `help wanted` (these might stick around for a while, in general, as they're intended to be available)
206206
* no explicit messages in the comments asking for it to be left open
207207
* does not belong to a milestone
208-
* Leave a message when closing saying "Cleaning up stale issue. Please reopen or ping us if and when you're ready to resume this. See https://github.com/shinsenter/defer.js/blob/latest/CONTRIBUTING.md#clean-up-issues-and-prs for more details."
208+
* Leave a message when closing saying "Cleaning up stale issue. Please reopen or ping us if and when you're ready to resume this. See https://code.shin.company/defer.js/blob/latest/CONTRIBUTING.md#clean-up-issues-and-prs for more details."
209209

210210
## Review Pull Requests
211211

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

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

5-
[![NPM](https://img.shields.io/npm/l/@shinsenter/defer.js)](https://raw.githubusercontent.com/shinsenter/defer.js/master/LICENSE)
5+
[![NPM](https://img.shields.io/npm/l/@shinsenter/defer.js)](https://code.shin.company/defer.js/blob/master/LICENSE)
66
[![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@shinsenter/defer.js)](https://snyk.io/advisor/npm-package/@shinsenter/defer.js)
77
[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/shinsenter/defer.js)](https://www.codefactor.io/repository/github/shinsenter/defer.js)
88

99
* * *
1010

11-
[![GitHub Release Date](https://img.shields.io/github/release-date/shinsenter/defer.js)](https://github.com/shinsenter/defer.js/releases)
12-
[![GitHub package.json version](https://img.shields.io/github/package-json/v/shinsenter/defer.js)](https://github.com/shinsenter/defer.js/releases)
11+
[![GitHub Release Date](https://img.shields.io/github/release-date/shinsenter/defer.js)](https://code.shin.company/defer.js/releases)
12+
[![GitHub package.json version](https://img.shields.io/github/package-json/v/shinsenter/defer.js)](https://code.shin.company/defer.js/releases)
1313
[![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@shinsenter/defer.js)](https://www.npmjs.com/package/@shinsenter/defer.js)
1414
[![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/@shinsenter/defer.js)](https://www.jsdelivr.com/package/npm/@shinsenter/defer.js)
1515

1616
[![NPM](https://nodei.co/npm/@shinsenter/defer.js.png?downloads=true)](https://www.npmjs.com/package/@shinsenter/defer.js)
1717

1818
- **Package**: [@shinsenter/defer.js](https://www.npmjs.com/package/@shinsenter/defer.js)
19-
- **Version**: 2.5.0
19+
- **Version**: 2.6.0
2020
- **Author**: Mai Nhut Tan <[email protected]>
2121
- **Copyright**: 2021 AppSeeds <https://code.shin.company/>
22-
- **License**: [MIT](https://raw.githubusercontent.com/shinsenter/defer.js/master/LICENSE)
22+
- **License**: [MIT](https://code.shin.company/defer.js/blob/master/LICENSE)
2323

2424
* * *
2525

@@ -90,7 +90,7 @@ or load it from a CDN like below example.
9090
<title>My Awesome Page</title>
9191

9292
<!-- Put defer.min.js here -->
93-
<script id="defer-js" src="https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.5.0/dist/defer.min.js"></script>
93+
<script id="defer-js" src="https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.6.0/dist/defer.min.js"></script>
9494

9595
<!-- ... -->
9696
</head>
@@ -111,7 +111,7 @@ instead of `defer.min.js`.
111111
<title>My Awesome Page</title>
112112

113113
<!-- Put defer_plus.min.js here -->
114-
<script id="defer-js" src="https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.5.0/dist/defer_plus.min.js"></script>
114+
<script id="defer-js" src="https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.6.0/dist/defer_plus.min.js"></script>
115115

116116
<!-- ... -->
117117
</head>
@@ -602,7 +602,7 @@ Defer.js(base + '/highlight.pack.min.js', 'hljs-js', 1000, function () {
602602
<a name="Defer.reveal"></a>
603603

604604
### Defer.reveal(element, [revealedClass]) ⇒ <code>void</code>
605-
Reveal an element which is lazyloaded by the library
605+
Reveals an element which is lazyloaded by the library
606606

607607
**Kind**: static method of [<code>Defer</code>](#Defer)
608608
**Since**: 2.1
@@ -781,21 +781,21 @@ In this library, a closure is a [Function](#Function) that gives you access to a
781781

782782
### PHP library
783783

784-
[https://github.com/shinsenter/defer.php/](https://github.com/shinsenter/defer.php/)
784+
[https://code.shin.company/defer.php/](https://code.shin.company/defer.php/)
785785

786786
🚀 A PHP library that focuses on minimizing payload size of HTML document and optimizing processing on the browser when rendering the web page.
787787

788788

789789
### Wordpress plugin
790790

791-
[https://github.com/shinsenter/defer-wordpress/](https://github.com/shinsenter/defer-wordpress/)
791+
[https://code.shin.company/defer-wordpress/](https://code.shin.company/defer-wordpress/)
792792

793793
⚡️ A native, blazing fast lazy loader. ✅ Legacy browsers support (IE9+). 💯 SEO friendly. 🧩 Lazy load almost anything.
794794

795795

796796
### Laravel package
797797

798-
[https://github.com/shinsenter/defer-laravel/](https://github.com/shinsenter/defer-laravel/)
798+
[https://code.shin.company/defer-laravel/](https://code.shin.company/defer-laravel/)
799799

800800
🚀 A Laravel package that focuses on minimizing payload size of HTML document and optimizing processing on the browser when rendering the web page.
801801

@@ -804,9 +804,9 @@ In this library, a closure is a [Function](#Function) that gives you access to a
804804

805805
[![Donate via Paypal](https://img.shields.io/badge/Donate-Paypal-blue)](https://www.paypal.me/shinsenter)
806806
[![Become a sponsor](https://img.shields.io/badge/Donate-Patreon-orange)](https://www.patreon.com/appseeds)
807-
[![Become a stargazer](https://img.shields.io/badge/Support-Stargazer-yellow)](https://github.com/shinsenter/defer.js/stargazers)
808-
[![Report an issue](https://img.shields.io/badge/Support-Issues-green)](https://github.com/shinsenter/defer.js/issues/new) [![Join the chat at https://gitter.im/shinsenter/defer.js](https://badges.gitter.im/shinsenter/defer.js.svg)](https://gitter.im/shinsenter/defer.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
809-
807+
[![Become a stargazer](https://img.shields.io/badge/Support-Stargazer-yellow)](https://code.shin.company/defer.js/stargazers)
808+
[![Report an issue](https://img.shields.io/badge/Support-Issues-green)](https://code.shin.company/defer.js/issues/new)
809+
[![Join the chat at https://gitter.im/shinsenter/defer.js](https://badges.gitter.im/shinsenter/defer.js.svg)](https://gitter.im/shinsenter/defer.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
810810

811811
* * *
812812

dist/defer.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)