Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aFarkas/lazysizes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.6-rc2
Choose a base ref
...
head repository: aFarkas/lazysizes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gh-pages
Choose a head ref

Commits on Jan 14, 2016

  1. Copy the full SHA
    028367b View commit details

Commits on Nov 2, 2016

  1. 2.0.6

    alexander.farkas committed Nov 2, 2016
    Copy the full SHA
    c2e3e1e View commit details

Commits on Nov 8, 2016

  1. adds flush method to rAF batch.

    alexander.farkas committed Nov 8, 2016
    Copy the full SHA
    d62bb2c View commit details
  2. 2.0.7

    alexander.farkas committed Nov 8, 2016
    Copy the full SHA
    83fe800 View commit details

Commits on Nov 17, 2016

  1. add intersectionobserver draft to the repository. (see #263)

    alexander.farkas committed Nov 17, 2016
    Copy the full SHA
    6315300 View commit details

Commits on Nov 25, 2016

  1. Don't use require amd anymore. (fixes #267)

    alexander.farkas committed Nov 25, 2016
    Copy the full SHA
    96f5b0c View commit details
  2. 3.0.0-rc1

    alexander.farkas committed Nov 25, 2016
    Copy the full SHA
    8c95208 View commit details

Commits on Nov 28, 2016

  1. 3.0.0-rc2

    alexander.farkas committed Nov 28, 2016
    Copy the full SHA
    ffb23cf View commit details

Commits on Jan 14, 2017

  1. check elem.complete after rAF (fixes #342)

    alexander.farkas committed Jan 14, 2017
    Copy the full SHA
    1608a1b View commit details
  2. 3.0.0-rc3

    alexander.farkas committed Jan 14, 2017
    Copy the full SHA
    5e2f98e View commit details

Commits on Jan 27, 2017

  1. typo fixes

    soul-wish committed Jan 27, 2017
    Copy the full SHA
    ecb32f1 View commit details
  2. Merge pull request #352 from soul-wish/master

    Small typo fixes
    Alexander Farkas authored Jan 27, 2017
    Copy the full SHA
    75d176d View commit details

Commits on Feb 8, 2017

  1. fixes issue #349

    alexander.farkas committed Feb 8, 2017
    Copy the full SHA
    9619035 View commit details
  2. fixes issue #341

    alexander.farkas committed Feb 8, 2017
    Copy the full SHA
    f8bcc8c View commit details
  3. 3.0.0-rc4

    alexander.farkas committed Feb 8, 2017
    Copy the full SHA
    d4bc9ab View commit details
  4. Merge remote-tracking branch 'origin/master'

    alexander.farkas committed Feb 8, 2017
    Copy the full SHA
    286ff4f View commit details

Commits on Feb 25, 2017

  1. 3.0.0

    alexander.farkas committed Feb 25, 2017
    Copy the full SHA
    9438fbd View commit details

Commits on Mar 27, 2017

  1. chore: Fix typo in README for display at GitHub

    David Maciejewski committed Mar 27, 2017
    Copy the full SHA
    bda60de View commit details
  2. Merge pull request #370 from macx/gh-pages

    chore: Fix typo in README for display at GitHub
    Alexander Farkas authored Mar 27, 2017
    Copy the full SHA
    8c534f5 View commit details

Commits on Apr 8, 2017

  1. test for img in updatePolyfill

    alexander.farkas committed Apr 8, 2017
    Copy the full SHA
    26cee7c View commit details
  2. Merge branch 'gh-pages' of https://github.com/aFarkas/lazysizes

    alexander.farkas committed Apr 8, 2017
    Copy the full SHA
    5b4d3f6 View commit details
  3. remove workaround for FF 46-

    alexander.farkas committed Apr 8, 2017
    Copy the full SHA
    7bc6ba9 View commit details

Commits on Apr 16, 2017

  1. Copy the full SHA
    5b3a82d View commit details

Commits on Apr 21, 2017

  1. Add UMD wrapper for all plugins

    Allow multiple lazysizes instances per page
    Claudio Baumgartner committed Apr 21, 2017
    Copy the full SHA
    35c7bdd View commit details

Commits on May 2, 2017

  1. Merge pull request #383 from claudiobmgrtnr/master

    Add UMD wrapper for all plugins
    Alexander Farkas authored May 2, 2017
    Copy the full SHA
    73bd8fa View commit details
  2. Merge pull request #380 from bryant1410/gh-pages

    Fix broken headings in Markdown files
    Alexander Farkas authored May 2, 2017
    Copy the full SHA
    382ac62 View commit details

Commits on May 5, 2017

  1. Merge branch 'gh-pages' of https://github.com/aFarkas/lazysizes

    alexander.farkas committed May 5, 2017
    Copy the full SHA
    e2b28dd View commit details

Commits on May 15, 2017

  1. "modularize" global events + remove AMD from plugins + make global in…

    …stall order save (improves #383, thx to @jantimon, @claudiobmgrtnr)
    alexander.farkas committed May 15, 2017
    Copy the full SHA
    083e12d View commit details
  2. add artdirection plugin

    alexander.farkas committed May 15, 2017
    Copy the full SHA
    d780458 View commit details
  3. add option to not load hidden elements (fixes issue #364)

    alexander.farkas committed May 15, 2017
    Copy the full SHA
    f86b4cd View commit details
  4. 4.0.0-RC1

    alexander.farkas committed May 15, 2017
    Copy the full SHA
    097a987 View commit details

Commits on May 30, 2017

  1. add lazyloaded event

    alexander.farkas committed May 30, 2017
    Copy the full SHA
    a17098b View commit details
  2. changelog update + build

    alexander.farkas committed May 30, 2017
    Copy the full SHA
    bedb980 View commit details

Commits on Jun 5, 2017

  1. fixes #388

    alexander.farkas committed Jun 5, 2017
    Copy the full SHA
    5d79d0f View commit details
  2. 4.0.0-rc2

    alexander.farkas committed Jun 5, 2017
    Copy the full SHA
    0e0ba4d View commit details

Commits on Jun 11, 2017

  1. expose lazySizes elements (fixes #399)

    alexander.farkas committed Jun 11, 2017
    Copy the full SHA
    57e719f View commit details

Commits on Jun 13, 2017

  1. 4.0.0-rc2

    alexander.farkas committed Jun 13, 2017
    Copy the full SHA
    76f9f29 View commit details

Commits on Jun 15, 2017

  1. fix timing issue with object-fit plugin

    alexander.farkas committed Jun 15, 2017
    Copy the full SHA
    a77d63f View commit details
  2. 4.0.0-rc3

    alexander.farkas committed Jun 15, 2017
    Copy the full SHA
    6120db5 View commit details

Commits on Aug 7, 2017

  1. 4.0.0-rc3

    alexander.farkas committed Aug 7, 2017
    Copy the full SHA
    908b240 View commit details

Commits on Oct 2, 2017

  1. fix broken image

    alexander.farkas committed Oct 2, 2017
    Copy the full SHA
    cc1832c View commit details

Commits on Oct 3, 2017

  1. fix loadRequireImportCB scope

    Jeremy Green committed Oct 3, 2017
    Copy the full SHA
    7eb208a View commit details

Commits on Oct 6, 2017

  1. Merge pull request #430 from jeremy-green/include-plugin-loadRequireI…

    …mportCB-scope
    
    Fix loadRequireImportCB Scope
    Alexander Farkas authored Oct 6, 2017
    Copy the full SHA
    ffcbc7e View commit details
  2. fix small issue with explicit unveil calls

    alexander.farkas committed Oct 6, 2017
    1
    Copy the full SHA
    d4944c5 View commit details
  3. Merge branch 'gh-pages' of https://github.com/aFarkas/lazysizes

    alexander.farkas committed Oct 6, 2017
    Copy the full SHA
    fb14021 View commit details
  4. 4.0.0-rc4

    alexander.farkas committed Oct 6, 2017
    Copy the full SHA
    27a1386 View commit details

Commits on Oct 14, 2017

  1. added timeout option requestIdleCallback (setting ricTimeout option b…

    …elow 150 fixes #434)
    alexander.farkas committed Oct 14, 2017
    Copy the full SHA
    90b5f2b View commit details
  2. 4.0.0

    alexander.farkas committed Oct 14, 2017
    Copy the full SHA
    9f00ad8 View commit details

Commits on Oct 22, 2017

  1. use custom lazyloaded event, because load event is sometimes buggy (f…

    …ixes #437)
    alexander.farkas committed Oct 22, 2017
    Copy the full SHA
    0837070 View commit details
  2. 4.0.1-beta1

    alexander.farkas committed Oct 22, 2017
    Copy the full SHA
    2ce662e View commit details
Showing with 9,014 additions and 1,283 deletions.
  1. +30 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +22 −0 .github/ISSUE_TEMPLATE/feature_request.md
  3. +10 −0 .github/ISSUE_TEMPLATE/other-issues.md
  4. +21 −0 .github/ISSUE_TEMPLATE/question.md
  5. +6 −0 .gitignore
  6. +1 −0 .npmignore
  7. +4 −0 BingSiteAuth.xml
  8. +120 −6 CHANGELOG.md
  9. +9 −9 Gruntfile.js
  10. +119 −100 README.md
  11. +89 −77 index.html
  12. +290 −156 lazysizes-umd.js
  13. +3 −2 lazysizes-umd.min.js
  14. +81 −0 lazysizes.d.ts
  15. +289 −155 lazysizes.js
  16. +3 −2 lazysizes.min.js
  17. +4,755 −0 package-lock.json
  18. +23 −17 package.json
  19. +1 −1 plugins/README.md
  20. +138 −0 plugins/artdirect/README.md
  21. +176 −0 plugins/artdirect/ls.artdirect.js
  22. +3 −0 plugins/artdirect/ls.artdirect.min.js
  23. +6 −6 plugins/aspectratio/README.md
  24. +28 −26 plugins/aspectratio/ls.aspectratio.js
  25. +3 −2 plugins/aspectratio/ls.aspectratio.min.js
  26. +7 −3 plugins/attrchange/README.md
  27. +28 −7 plugins/attrchange/ls.attrchange.js
  28. +3 −2 plugins/attrchange/ls.attrchange.min.js
  29. +6 −2 plugins/bgset/README.md
  30. +58 −14 plugins/bgset/ls.bgset.js
  31. +3 −2 plugins/bgset/ls.bgset.min.js
  32. +123 −0 plugins/blur-up/README.md
  33. +238 −0 plugins/blur-up/ls.blur-up.js
  34. +3 −0 plugins/blur-up/ls.blur-up.min.js
  35. +2 −2 plugins/custommedia/README.md
  36. +56 −49 plugins/custommedia/ls.custommedia.js
  37. +3 −2 plugins/custommedia/ls.custommedia.min.js
  38. +5 −0 plugins/fix-edge-h-descriptor/README.md
  39. +81 −0 plugins/fix-edge-h-descriptor/ls.fix-edge-h-descriptor.js
  40. +3 −0 plugins/fix-edge-h-descriptor/ls.fix-edge-h-descriptor.min.js
  41. +27 −7 plugins/fix-ios-sizes/fix-ios-sizes.js
  42. +3 −2 plugins/fix-ios-sizes/fix-ios-sizes.min.js
  43. +58 −18 plugins/include/README.md
  44. +153 −45 plugins/include/ls.include.js
  45. +3 −2 plugins/include/ls.include.min.js
  46. +69 −0 plugins/native-loading/README.md
  47. +115 −0 plugins/native-loading/ls.native-loading.js
  48. +3 −0 plugins/native-loading/ls.native-loading.min.js
  49. +4 −4 plugins/noscript/README.md
  50. +69 −59 plugins/noscript/ls.noscript.js
  51. +3 −2 plugins/noscript/ls.noscript.min.js
  52. +23 −9 plugins/object-fit/README.md
  53. +108 −29 plugins/object-fit/ls.object-fit.js
  54. +3 −2 plugins/object-fit/ls.object-fit.min.js
  55. +35 −6 plugins/optimumx/README.md
  56. +25 −26 plugins/optimumx/ls.optimumx.js
  57. +3 −2 plugins/optimumx/ls.optimumx.min.js
  58. +31 −9 plugins/parent-fit/README.md
  59. +46 −25 plugins/parent-fit/ls.parent-fit.js
  60. +3 −2 plugins/parent-fit/ls.parent-fit.min.js
  61. +1 −1 plugins/print/README.md
  62. +21 −4 plugins/print/ls.print.js
  63. +3 −2 plugins/print/ls.print.min.js
  64. +5 −5 plugins/progressive/README.md
  65. +21 −2 plugins/progressive/ls.progressive.js
  66. +3 −2 plugins/progressive/ls.progressive.min.js
  67. +12 −5 plugins/respimg/README.md
  68. +55 −111 plugins/respimg/ls.respimg.js
  69. +3 −2 plugins/respimg/ls.respimg.min.js
  70. +36 −14 plugins/rias/README.md
  71. +57 −23 plugins/rias/ls.rias.js
  72. +3 −2 plugins/rias/ls.rias.min.js
  73. +21 −3 plugins/static-gecko-picture/ls.static-gecko-picture.js
  74. +3 −2 plugins/static-gecko-picture/ls.static-gecko-picture.min.js
  75. +23 −2 plugins/twitter/ls.twitter.js
  76. +3 −2 plugins/twitter/ls.twitter.min.js
  77. +4 −4 plugins/unload/README.md
  78. +25 −7 plugins/unload/ls.unload.js
  79. +3 −2 plugins/unload/ls.unload.min.js
  80. +11 −2 plugins/unveilhooks/README.md
  81. +77 −19 plugins/unveilhooks/ls.unveilhooks.js
  82. +3 −2 plugins/unveilhooks/ls.unveilhooks.min.js
  83. +41 −7 plugins/video-embed/ls.video-embed.js
  84. +3 −2 plugins/video-embed/ls.video-embed.min.js
  85. +5 −5 rias/index.html
  86. +3 −2 src/common.wrapper
  87. +287 −154 src/lazysizes-core.js
  88. +544 −0 src/lazysizes-intersection.js
  89. +3 −2 src/umd.wrapper
  90. +1 −1 tests/functional-tests-plugins.js
  91. +1 −1 tests/test-files/content-file.html
  92. +14 −0 tsconfig.json
  93. +56 −0 types/global.d.ts
  94. +30 −0 types/lazysizes-config.d.ts
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A short, clear and concise description of what the bug is.

**To Reproduce**
Provide a url where the bug can be reproduced. (Use for example: [jsbin](https://jsbin.com), [codepen](https://codepen.io), [jsfiddle.net](https://jsfiddle.net) or [codesandbox.io](https://codesandbox.io)

**Steps to reproduce the behavior:**
Provide all necessary steps to reproduce the bug.

**What is the expected behavior:**


**What happened instead:**


**In what environment (browser/device etc.) does this bug happen/not happen:**

**Keywords help others to find this issue:**

⚠️ Search for existing open/closed issues/discussions before you report the issue.
⚠️ If you do not provide enough information to reproduce your bug. We won't be able to work on the issue. In most cases just providing a fraction of your code is not enough!
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

⚠️ Consider that most features can be solved by the simple plugin architecture and that most features doesn't need to be added to the core.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/other-issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Other issues
about: If the other templates don't fit...
title: ''
labels: ''
assignees: ''

---

⚠️ Search for existing open/closed issues/discussions before you open your issue.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Question
about: Ask questions about the API and integration
title: ''
labels: question
assignees: ''

---

**Describe your problem/question**
A complete but concise description of your problem and how you are trying to fix it and where you are struggling.

**Make it reproduce-able**
If your problem is with code or the expected answer should include code provide a live code example using https://jsbin.com/ or https://codesandbox.io/.

**Add tags/keywords**
Make sure others can find your problem.

⚠️ Search for existing open/closed issues/discussions before you ask your question.
⚠️ I work on my spare time on helping users out. This means make it easy for me to simply see your live problem and help to fix it.
🤘 No panic: Don't be afraid to ask a question.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.bak
*.zip
.*
/play
node_modules
bower_components
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ bower_components
/assets
/include
/plato-report
/src
index.html
no-src.html
user-developer-experience.html
4 changes: 4 additions & 0 deletions BingSiteAuth.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<users>
<user>D45AA4276907D8A86808F0D7C84BC7BC</user>
</users>
126 changes: 120 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,128 @@
#Changelog
# Changelog

##2.0.0
### 5.3.1
- Added basic Typescript support

### 5.3.0

- BGSet: Support adding multiple images/backgrounds through `event.detail.fullSrc` ([#827](https://github.com/aFarkas/lazysizes/issues/827))
- RiaS plugin: Use `source` based config in case of `picture` element usage ([#764](https://github.com/aFarkas/lazysizes/issues/831))
- BlurUp plugin: Added possibility to change classNames ([#814](https://github.com/aFarkas/lazysizes/pull/814))
- Core: Added `iframeLoadMode` option (see [#810](https://github.com/aFarkas/lazysizes/pull/810))

## 5.2.2
- Add correct AMD module pattern for plugins.

## 5.2.1

- BlurUp-Plugin: Copy style attribute ([#764](https://github.com/aFarkas/lazysizes/pull/764))
- Fixes minor security issue with video-embed plugin ([#764](https://github.com/aFarkas/lazysizes/pull/764))
- Built: Update dependencies ([#774](https://github.com/aFarkas/lazysizes/pull/774), [#756](https://github.com/aFarkas/lazysizes/pull/756))
- Fixes diverse issues with old AMD module pattern ([#780](https://github.com/aFarkas/lazysizes/pull/780), [#779](https://github.com/aFarkas/lazysizes/pull/779))

## 5.2.0

* Fix wrong window context under very rare SSR (fixes [#717](https://github.com/aFarkas/lazysizes/pull/717))
* Fix Safari Back-Forward Cache issue with lazyloading image elements (fixes [#711](https://github.com/aFarkas/lazysizes/issues/711))
* Add lazyload of autoplay videos to unveilhooks (fixes [#697](https://github.com/aFarkas/lazysizes/issues/697))

## 5.1.2

* Fix visibility check (fixes [#709](https://github.com/aFarkas/lazysizes/issues/709))

## 5.1.1

* Fix ratio calculation in rias plugin (fixed in [#685](https://github.com/aFarkas/lazysizes/pull/685) by [tikotzky](https://github.com/tikotzky))
* Make thumb size for youtube poster image in video-embed plugin configurable (see [#681](https://github.com/aFarkas/lazysizes/pull/681) thx to [@nikitasol](https://github.com/nikitasol))

## 5.1.0

* Allow import/execution in node environment
* Use "hqdefault" for youtube poster image in video-embed plugin fixes [#666](https://github.com/aFarkas/lazysizes/issues/666)

## 5.0.0

* Use `width`/`height` content attributes to detect physical aspect ratio of image candidates, if `data-aspectratio` and `h`/`w` descriptors are missing. [#642](https://github.com/aFarkas/lazysizes/issues/642)
* Do not leak global `lazySizesConfig` anymore fixes [#647](https://github.com/aFarkas/lazysizes/issues/647)
* Improve handling of cloned object-fit images fixes [#648](https://github.com/aFarkas/lazysizes/issues/648)
* Improve blur-up/effect plugin.
* Add support for native `loading="lazy"` feature as a [native loading plugin](https://github.com/aFarkas/lazysizes/tree/gh-pages/plugins/native-loading).

## 4.1.8

* Added the class `ls-is-cached` to already cached images.
* Added h descriptor parsing fix plugin for MS edge (was already included in respimg polyfill.)
* Effects-Plugin/Blur Up plugin: Remove [].find because IE..., fixes [#631](https://github.com/aFarkas/lazysizes/issues/631)
* Documentation stuff
* Bring back *.min.js files to npm package, but don't use them in your `import`/`require`. These are mostly for CDNs. Not for Common JS bundlers.

## 4.1.7

* Blur Up plugin: make blur up mode configurable by script
* Unload Plugin: Fix unload plugin not knowing current expand, fixes [#608](https://github.com/aFarkas/lazysizes/issues/608)
* simplify resetPreloading and switchLoadingClass, fixes [#614](https://github.com/aFarkas/lazysizes/issues/614)

## 4.1.6

* Several Readme fixes
* Allow expand, hFax and expFactor to be changed after initialization, see [#581](https://github.com/aFarkas/lazysizes/issues/581)

## 4.1.5

* Blur Up plugin: Add an empty alt attribute to the blur image to satisfy a11y [c3256d6](https://github.com/aFarkas/lazysizes/commit/c3256d61c002a984ab3e644e922b0fdc052519d8)
* Blur Up plugin: added aria-hidden attribute [1d62efb](https://github.com/aFarkas/lazysizes/commit/1d62efb352f579d4505bd3d76d8166db2db9481f)
* RiaS plugin: fix wrong ratio calculation, fixes [#550](https://github.com/aFarkas/lazysizes/issues/550)
* Rias Plugin: add aspect-ratio to rias for calculating height, fixes [#557](https://github.com/aFarkas/lazysizes/issues/557)

## 4.1.4

* Resolve race condition with blurImg [dffa93b](https://github.com/aFarkas/lazysizes/commit/dffa93b804302363aceb7dc814b01629014ed03b)
* make intersectionobserver version compatible with plugins [2f1a025](https://github.com/aFarkas/lazysizes/commit/2f1a02531eb96e828d42fb7877e776b810d7f346)

## 4.1.3

* change from custom to basic event interface (maybe fixes [#520](https://github.com/aFarkas/lazysizes/issues/527))
* Clarify data-aspectratio attribute [d868605](https://github.com/aFarkas/lazysizes/commit/d8686050adeb68aae14e522bed12d68ab00b7595)

## 4.1.2

* fixes race condition with blurupimg [#527](https://github.com/aFarkas/lazysizes/issues/527)
* add proxy change event to extend bgset [#532](https://github.com/aFarkas/lazysizes/issues/532)


## 4.1.1

* See [3ace9f3](https://github.com/aFarkas/lazysizes/commit/3ace9f359617409fe2824311032439fcf76a7c99)

## 4.1.0

* improve effect plugin

## 4.0.4

* fixes issue in bgset introduced with version 4.0.3

## 4.0.3

* add [blur up plugin](https://jsfiddle.net/trixta/v0oq0412/embedded/result/)

## 4.0.0

* make all plugins CommonJS compatible (thx to @claudiobmgrtnr and @jantimon)
* added `loadHidden` option(thx to @justinvoelker)
* added artdirection plugin (no documentation yet, but great)
* iOS 8.1 fixes has to be loaded explicitly in non CommonJS environments (not included in respimg plugin anymore)
* removed `picture` support for old FF 38-

## 2.0.0

* lazysizes core:
* heavily improved performance (`requestIdleCallback`, better debouncing and a lot more).
* plugins:
* new plugin: [**object fit polyfill**](plugins/object-fit).
* improved new options for [parent-fit plugin](plugins/parent-fit).

##1.5.0
## 1.5.0
Breaking change:
* the lazysizes.js and lazysizes.min.js files do not register as AMD modules anymore, if you need an AMD module use the new lazysizes-umd.js or lazysizes-umd.min.js file.
* lazysizes core:
@@ -21,7 +135,7 @@ Breaking change:
* unload plugin:
unload plugin was broken since version 1.4.0 (thanks to @hokamoto)

##1.4.0
## 1.4.0
* lazysizes core:
* improved lazyloading in background tabs.
* improved avoiding layout thrashing
@@ -31,7 +145,7 @@ Breaking change:
* rias (and bgset):
* added support for height calculation (thx to @LRancez, [#213](https://github.com/aFarkas/lazysizes/pull/213))

##1.3.2
## 1.3.2

* lazysizes core:
* add `hFactor` option (see #181).
@@ -40,7 +154,7 @@ Breaking change:
* bgset plugin:
* add an empty alt to image (see #200).

##1.3.1 version
## 1.3.1 version

* lazysizes core:
* replace `setImmediate` with `setTimeout` (improved performance for IE/EDGE).
18 changes: 9 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -49,13 +49,6 @@
src: [ "lazysizes.js", "plugins/**/*.js", "!*.min.js", "!plugins/**/*.min.js" ] //, "Gruntfile.js", "tests/*.js"
}
},
plato: {
all: {
files: {
"plato-report/": ["lazysizes.js", "plugins/**/*.js", "!*.min.js", "!plugins/**/*.min.js"]
}
}
},
qunit: {
all: ['tests/*.html']
},
@@ -83,7 +76,7 @@
},
minified: {
options: {
maxBytes: (1024 * 6.333)
maxBytes: (1024 * 7.8)
},
src: ["lazysizes.min.js"]
}
@@ -97,7 +90,6 @@
grunt.loadNpmTasks('grunt-uncss');
grunt.loadNpmTasks('grunt-bytesize');
grunt.loadNpmTasks('grunt-max-filesize');
grunt.loadNpmTasks('grunt-plato');
grunt.loadNpmTasks('grunt-contrib-qunit');

grunt.registerTask('wrapcore', 'wraps lazysizes into umd and common wrapper.', function() {
@@ -109,6 +101,14 @@
grunt.file.write('lazysizes-umd.js', umd.replace('{{ls}}', ls));
});

grunt.registerTask('importTs', 'import global typescript.', function() {
const fileName = './lazysizes.d.ts';
const importStr = `import './types/global';\n\n`;
const tsContent = grunt.file.read(fileName);

grunt.file.write(fileName, importStr + tsContent);
});


// Default task.
grunt.registerTask("default", [ "wrapcore", "test", "uglify", "bytesize", "maxFilesize" ]);
Loading