-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(modules): introduced other js module formats * refactor: updated dependencies * chore: code optimization * chore: added use strict again * chore(structure): moved that file back to the root * refactor: providing a better sounding and differentiable method * fix: missed to export the correct variable the latest * docs(api): mentioning the public method * refactor(browserlist): dropping IE8 * refactor: regenerated the JS files * chore: removed previous build tools config * test(xo): integrated some valid feedback * test(xo): integrated some valid feedback * chore: regenerated package-lock.json file * chore: regenerated package-lock.json * refactor: changed this to the new husky format * chore: regenerated the package-lock file * refactor(prettier): added relevant configuration * refactor: regenerated the dist files * chore: regenerated package-lock.json * build: rebuild the distributed files * build: prepared the next beta release Co-authored-by: Maximilian Franzke <[email protected]>
- Loading branch information
Showing
23 changed files
with
27,793 additions
and
14,850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
> 0.1%, IE >= 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
node_modules | ||
config.codekit3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
demo | ||
webdriverio-tests | ||
.gitignore | ||
.huskyrc | ||
config.codekit3 | ||
.husky | ||
commitlint.config.js | ||
wdio.conf-crossbrowsertesting.js | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
*.min.js | ||
dist | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import loadingAttributePolyfill from '../dist/loading-attribute-polyfill.module.js'; | ||
|
||
// Test for dynamically inserted images | ||
window.setTimeout(() => { | ||
let child = document.createElement('div'); | ||
child.innerHTML = '<noscript class="loading-lazy"></noscript>'; | ||
child = child.firstChild; | ||
|
||
let imageElement = document.createElement('img'); | ||
imageElement.setAttribute('src', 'https://via.placeholder.com/300'); | ||
imageElement.setAttribute('loading', 'lazy'); | ||
imageElement.setAttribute('alt', '..'); | ||
imageElement.setAttribute('width', '250'); | ||
imageElement.setAttribute('height', '150'); | ||
child.appendChild(imageElement); | ||
document | ||
.getElementsByTagName('main')[0] | ||
.insertBefore(child, document.getElementsByTagName('main')[0].firstChild); | ||
|
||
loadingAttributePolyfill.prepareElement(document.querySelector('main noscript.loading-lazy')); | ||
}, 5000); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.