programmieren:php:snippets:lazy_load
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| programmieren:php:snippets:lazy_load [13/10/2019 13:14] – angelegt conny | programmieren:php:snippets:lazy_load [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ==== Lazy Load ==== | ==== Lazy Load ==== | ||
| - | \\ | + | |
| nachladen von Grafiken welche außerhalb des sichtbaren Bereichs sind.\\ | nachladen von Grafiken welche außerhalb des sichtbaren Bereichs sind.\\ | ||
| \\ | \\ | ||
| - | https:// | + | https:// |
| + | \\ | ||
| + | JTL Forum:\\ | ||
| + | https:// | ||
| + | \\ | ||
| + | http:// | ||
| + | <code html> | ||
| + | <img class=" | ||
| + | <img class=" | ||
| + | <img class=" | ||
| + | <img class=" | ||
| + | <img class=" | ||
| + | <img class=" | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | // plugin build-in placeholder management | ||
| + | $(function() { | ||
| + | $(' | ||
| + | | ||
| + | }); | ||
| + | }); | ||
| + | </ | ||
| + | |||
| + | <code css> | ||
| + | img.lazy { | ||
| + | width: 700px; | ||
| + | height: 467px; | ||
| + | display: block; | ||
| + | |||
| + | /* optional way, set loading as background */ | ||
| + | background-image: | ||
| + | background-repeat: | ||
| + | background-position: | ||
| + | } | ||
| + | </ | ||
programmieren/php/snippets/lazy_load.1570965248.txt.gz · Zuletzt geändert: 13/10/2019 12:14 (Externe Bearbeitung)
