Version Description
Download this release
Release Info
Developer | bjornjohansen |
Plugin | BJ Lazy Load |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- bj-lazy-load.php +1 -1
- js/bj-lazy-load.js +0 -2
- js/bj-lazy-load.min.js +1 -1
- lang/bj-lazy-load-pl_PL.mo +0 -0
- lang/bj-lazy-load-pl_PL.po +177 -0
- readme.txt +6 -1
bj-lazy-load.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: https://wordpress.org/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
-
Version: 1.0.
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
Text Domain: bj-lazy-load
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: https://wordpress.org/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
+
Version: 1.0.5
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
Text Domain: bj-lazy-load
|
js/bj-lazy-load.js
CHANGED
@@ -46,8 +46,6 @@ var BJLL = {
|
|
46 |
|
47 |
show: function( el ) {
|
48 |
|
49 |
-
console.log( el );
|
50 |
-
|
51 |
el.className = el.className.replace( /(?:^|\s)lazy-hidden(?!\S)/g , '' );
|
52 |
|
53 |
el.addEventListener( 'load', function() {
|
46 |
|
47 |
show: function( el ) {
|
48 |
|
|
|
|
|
49 |
el.className = el.className.replace( /(?:^|\s)lazy-hidden(?!\S)/g , '' );
|
50 |
|
51 |
el.addEventListener( 'load', function() {
|
js/bj-lazy-load.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";var BJLL_options=BJLL_options||{},BJLL={_ticking:!1,check:function(){if(!BJLL._ticking){BJLL._ticking=!0,"undefined"==typeof BJLL.threshold&&(BJLL.threshold="undefined"!=typeof BJLL_options.threshold?parseInt(BJLL_options.threshold):200);var winH=document.documentElement.clientHeight||body.clientHeight,updated=!1,els=document.getElementsByClassName("lazy-hidden");[].forEach.call(els,function(el){var elemRect=el.getBoundingClientRect();winH-elemRect.top+BJLL.threshold>0&&(BJLL.show(el),updated=!0)}),BJLL._ticking=!1,updated&&BJLL.check()}},show:function(el){
|
1 |
+
"use strict";var BJLL_options=BJLL_options||{},BJLL={_ticking:!1,check:function(){if(!BJLL._ticking){BJLL._ticking=!0,"undefined"==typeof BJLL.threshold&&(BJLL.threshold="undefined"!=typeof BJLL_options.threshold?parseInt(BJLL_options.threshold):200);var winH=document.documentElement.clientHeight||body.clientHeight,updated=!1,els=document.getElementsByClassName("lazy-hidden");[].forEach.call(els,function(el){var elemRect=el.getBoundingClientRect();winH-elemRect.top+BJLL.threshold>0&&(BJLL.show(el),updated=!0)}),BJLL._ticking=!1,updated&&BJLL.check()}},show:function(el){el.className=el.className.replace(/(?:^|\s)lazy-hidden(?!\S)/g,""),el.addEventListener("load",function(){BJLL.customEvent(el,"lazyloaded")},!1);var type=el.getAttribute("data-lazy-type");if("image"==type)el.setAttribute("src",el.getAttribute("data-lazy-src")),null!=el.getAttribute("data-srcset")&&el.setAttribute("srcset",el.getAttribute("data-srcset"));else if("iframe"==type){var s=el.getAttribute("data-lazy-src"),div=document.createElement("div");div.innerHTML=s;var iframe=div.firstChild;el.parentNode.replaceChild(iframe,el)}},customEvent:function(el,eventName){var event;document.createEvent?(event=document.createEvent("HTMLEvents"),event.initEvent(eventName,!0,!0)):(event=document.createEventObject(),event.eventType=eventName),event.eventName=eventName,document.createEvent?el.dispatchEvent(event):el.fireEvent("on"+event.eventType,event)}};window.addEventListener("load",BJLL.check,!1),window.addEventListener("scroll",BJLL.check,!1),window.addEventListener("resize",BJLL.check,!1),document.getElementsByTagName("body").item(0).addEventListener("post-load",BJLL.check,!1);
|
lang/bj-lazy-load-pl_PL.mo
ADDED
Binary file
|
lang/bj-lazy-load-pl_PL.po
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2013 BJ Lazy Load
|
2 |
+
# This file is distributed under the same license as the BJ Lazy Load package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: BJ Lazy Load 0.7.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/bj-lazy-load\n"
|
7 |
+
"POT-Creation-Date: 2015-06-25 16:31+0100\n"
|
8 |
+
"PO-Revision-Date: 2015-06-25 16:32+0100\n"
|
9 |
+
"Last-Translator: Maciej Gryniuk <maciejka45@gmail.com>\n"
|
10 |
+
"Language-Team: Maciej Gryniuk <maciejka45@gmail.com>\n"
|
11 |
+
"Language: pl_PL\n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.8.1\n"
|
16 |
+
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
17 |
+
"|| n%100>=20) ? 1 : 2);\n"
|
18 |
+
|
19 |
+
#: admin.php:8
|
20 |
+
msgid "BJ Lazy Load Options"
|
21 |
+
msgstr "Ustawienia BJ Lazy Load"
|
22 |
+
|
23 |
+
#: admin.php:17
|
24 |
+
msgid "Apply to content"
|
25 |
+
msgstr "Zastosuj do treści"
|
26 |
+
|
27 |
+
#: admin.php:20 admin.php:26 admin.php:32 admin.php:38 admin.php:44
|
28 |
+
#: admin.php:76 admin.php:84 admin.php:92 admin.php:102 admin.php:112
|
29 |
+
msgid "Yes"
|
30 |
+
msgstr "Tak"
|
31 |
+
|
32 |
+
#: admin.php:20 admin.php:26 admin.php:32 admin.php:38 admin.php:44
|
33 |
+
#: admin.php:76 admin.php:84 admin.php:92 admin.php:102 admin.php:112
|
34 |
+
msgid "No"
|
35 |
+
msgstr "Nie"
|
36 |
+
|
37 |
+
#: admin.php:23
|
38 |
+
msgid "Apply to text widgets"
|
39 |
+
msgstr "Zastosuj do tekstowych widgetów"
|
40 |
+
|
41 |
+
#: admin.php:29
|
42 |
+
msgid "Apply to post thumbnails"
|
43 |
+
msgstr "Zastosuj do obrazków wyróżniających"
|
44 |
+
|
45 |
+
#: admin.php:29
|
46 |
+
msgid "Apply to gravatars"
|
47 |
+
msgstr "Zastosuj do gravatar'ów"
|
48 |
+
|
49 |
+
#: admin.php:35
|
50 |
+
msgid "Lazy load images"
|
51 |
+
msgstr "Powolne ładowanie obrazków"
|
52 |
+
|
53 |
+
#: admin.php:41
|
54 |
+
msgid "Lazy load iframes"
|
55 |
+
msgstr "Powolne ładowanie iframe"
|
56 |
+
|
57 |
+
#: admin.php:47
|
58 |
+
msgid "Theme loader function"
|
59 |
+
msgstr "Funkcja ładowania w motywie"
|
60 |
+
|
61 |
+
#: admin.php:53
|
62 |
+
msgid "Placeholder Image URL"
|
63 |
+
msgstr "Adres URL obrazka zastępczego"
|
64 |
+
|
65 |
+
#: admin.php:56
|
66 |
+
msgid "Leave blank for default"
|
67 |
+
msgstr "Pozostaw puste dla domyślnego"
|
68 |
+
|
69 |
+
#: admin.php:59
|
70 |
+
msgid "Skip images with classes"
|
71 |
+
msgstr "Pomiń obrazki z klasami"
|
72 |
+
|
73 |
+
#: admin.php:62
|
74 |
+
msgid "Comma separated. Example: \"no-lazy, lazy-ignore, image-235\""
|
75 |
+
msgstr "Rozdziel przecinkiem. Na przykład: \"no-lazy, lazy-ignore, image-235\""
|
76 |
+
|
77 |
+
#: admin.php:65
|
78 |
+
msgid "Threshold"
|
79 |
+
msgstr "Próg"
|
80 |
+
|
81 |
+
#: admin.php:68
|
82 |
+
msgid ""
|
83 |
+
"How close to the viewport the element should be when we load it. In pixels. "
|
84 |
+
"Example: 200"
|
85 |
+
msgstr ""
|
86 |
+
"Określ w pikselach odległość od widocznego okna (viewport), gdy element "
|
87 |
+
"powinien zostać załadowany. Na przykład: 200"
|
88 |
+
|
89 |
+
#: admin.php:73
|
90 |
+
msgid "Infinite scroll"
|
91 |
+
msgstr "Niekończące się przewijanie"
|
92 |
+
|
93 |
+
#: admin.php:77
|
94 |
+
msgid "Enable if your theme uses infinite scroll."
|
95 |
+
msgstr "Włącz, gdy Twój motyw korzysta z niekończącego się przewijania."
|
96 |
+
|
97 |
+
#: admin.php:81
|
98 |
+
msgid "Load hiDPI (retina) images"
|
99 |
+
msgstr "Ładuj obrazki HiDPI (retina)"
|
100 |
+
|
101 |
+
#: admin.php:85
|
102 |
+
msgid ""
|
103 |
+
"Will load hiDPI version of the images if the current browser/screen supports "
|
104 |
+
"them. (Experimental feature. Do NOT enable if you are using a CDN)"
|
105 |
+
msgstr ""
|
106 |
+
"Załaduje obrazki w wersji HiDPI, gdy aktywna przeglądarka/ekran je wspiera. "
|
107 |
+
"(Funkcja eksperymentalna. NIE włączaj, gdy używasz CDN.)"
|
108 |
+
|
109 |
+
#: admin.php:89
|
110 |
+
msgid "Load responsive images"
|
111 |
+
msgstr "Ładuj responsywne obrazki"
|
112 |
+
|
113 |
+
#: admin.php:93
|
114 |
+
msgid ""
|
115 |
+
"Will load scaled down version of the images if the image is scaled down in "
|
116 |
+
"the theme. (Experimental feature. Do NOT enable if you are using a CDN)"
|
117 |
+
msgstr ""
|
118 |
+
"Załaduje obrazki w niższej jakości, jeżeli motyw zmniejsza jakość obrazków. "
|
119 |
+
"(Funkcja eksperymentalna. NIE włączaj, gdy używasz CDN.)"
|
120 |
+
|
121 |
+
#: admin.php:99
|
122 |
+
msgid "Disable on WPTouch"
|
123 |
+
msgstr "Wyłącz na WPTouch"
|
124 |
+
|
125 |
+
#: admin.php:103
|
126 |
+
msgid "Disables BJ Lazy Load when the WPTouch mobile theme is used"
|
127 |
+
msgstr "Wyłącza BJ Lazy Load, gdy jest używany mobilny motyw WPTouch"
|
128 |
+
|
129 |
+
#: admin.php:109
|
130 |
+
msgid "Disable on MobilePress"
|
131 |
+
msgstr "Wyłącz na MobilePress"
|
132 |
+
|
133 |
+
#: admin.php:113
|
134 |
+
msgid "Disables BJ Lazy Load when the MobilePress mobile theme is used"
|
135 |
+
msgstr "Wyłącza BJ Lazy Load, gdy jest używany mobilny motyw MobilePress"
|
136 |
+
|
137 |
+
#: inc/class-bjll-skip-post.php:37
|
138 |
+
msgid "Lazy Loading"
|
139 |
+
msgstr "Powolne ładowanie"
|
140 |
+
|
141 |
+
#: inc/class-bjll-skip-post.php:50
|
142 |
+
msgid "Skip lazy loading for this page"
|
143 |
+
msgstr "Pomiń powolne ładowanie dla tej strony"
|
144 |
+
|
145 |
+
#: inc/class-bjll-skip-post.php:50
|
146 |
+
msgid "Skip lazy loading for this post"
|
147 |
+
msgstr "Pomiń powolne ładowanie dla tego wpisu"
|
148 |
+
|
149 |
+
#: scb/AdminPage.php:227
|
150 |
+
msgid "Settings <strong>saved</strong>."
|
151 |
+
msgstr "Ustawienia <strong>zapisane</strong>."
|
152 |
+
|
153 |
+
#: scb/AdminPage.php:466
|
154 |
+
msgid "Settings"
|
155 |
+
msgstr "Ustawienia"
|
156 |
+
|
157 |
+
#. Plugin Name of the plugin/theme
|
158 |
+
msgid "BJ Lazy Load"
|
159 |
+
msgstr "BJ Lazy Load"
|
160 |
+
|
161 |
+
#. Plugin URI of the plugin/theme
|
162 |
+
msgid "http://wordpress.org/extend/plugins/bj-lazy-load/"
|
163 |
+
msgstr "http://wordpress.org/extend/plugins/bj-lazy-load/"
|
164 |
+
|
165 |
+
#. Description of the plugin/theme
|
166 |
+
msgid "Lazy image loading makes your site load faster and saves bandwidth."
|
167 |
+
msgstr ""
|
168 |
+
"Dzięki powolnemu ładowaniu obrazków, Twoja strona ładuje się szybciej i "
|
169 |
+
"zaoszczędza przepustowość."
|
170 |
+
|
171 |
+
#. Author of the plugin/theme
|
172 |
+
msgid "Bjørn Johansen"
|
173 |
+
msgstr "Bjørn Johansen"
|
174 |
+
|
175 |
+
#. Author URI of the plugin/theme
|
176 |
+
msgid "http://twitter.com/bjornjohansen"
|
177 |
+
msgstr "http://twitter.com/bjornjohansen"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: images, iframes, lazy loading, javascript, optimize, performance, bandwidt
|
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.5
|
7 |
Tested up to: 4.3
|
8 |
-
Stable tag: 1.0.
|
9 |
|
10 |
Lazy loading for images and iframes makes your site load faster and saves bandwidth. Uses no external JS libraries and degrades gracefully for non-js users.
|
11 |
|
@@ -27,6 +27,7 @@ Please let me know if you have any issues. Fastest way to get a response is by T
|
|
27 |
= Translations =
|
28 |
* Russian (ru_RU) by Elvisrk
|
29 |
* Hebrew (he_IL) by Imri Sagive
|
|
|
30 |
* Norwegian Bokmål (nb_NO) by Bjørn Johansen
|
31 |
|
32 |
<a href="https://github.com/bjornjohansen/bj-lazy-load">Development happens at GitHub</a>. Pull requests are very welcome.
|
@@ -61,6 +62,10 @@ Check your HTML source or see the magic at work in Web Inspector, FireBug or sim
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
64 |
= Version 1.0.4 =
|
65 |
* We do not touch the feeds
|
66 |
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.5
|
7 |
Tested up to: 4.3
|
8 |
+
Stable tag: 1.0.5
|
9 |
|
10 |
Lazy loading for images and iframes makes your site load faster and saves bandwidth. Uses no external JS libraries and degrades gracefully for non-js users.
|
11 |
|
27 |
= Translations =
|
28 |
* Russian (ru_RU) by Elvisrk
|
29 |
* Hebrew (he_IL) by Imri Sagive
|
30 |
+
* Polish (pl_PL) by Maciej Gryniuk
|
31 |
* Norwegian Bokmål (nb_NO) by Bjørn Johansen
|
32 |
|
33 |
<a href="https://github.com/bjornjohansen/bj-lazy-load">Development happens at GitHub</a>. Pull requests are very welcome.
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= Version 1.0.5 =
|
66 |
+
* Added Polish language (by Maciej Gryniuk).
|
67 |
+
* Remove leftover console.log() from debugging -- oh, crap ... I know :-(
|
68 |
+
|
69 |
= Version 1.0.4 =
|
70 |
* We do not touch the feeds
|
71 |
|