{"id":7442,"date":"2024-01-18T04:02:31","date_gmt":"2024-01-18T04:02:31","guid":{"rendered":"https:\/\/musilda.cz\/?p=7442"},"modified":"2024-01-18T04:02:31","modified_gmt":"2024-01-18T04:02:31","slug":"lazy-loading-ve-wordpressu","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/lazy-loading-ve-wordpressu\/","title":{"rendered":"Lazy loading ve WordPressu"},"content":{"rendered":"\n

Pokud je n\u00e1\u0161 web p\u0159epln\u011bn r\u016fzn\u00fdmi vizu\u00e1ln\u00edmi prvky, zpomalujeme jeho celkovou rychlost a sni\u017eujeme tak n\u00e1v\u0161t\u011bvnost v\u010detn\u011b SEO. <\/p>\n\n\n\n

\u0158e\u0161en\u00edm by samoz\u0159ejm\u011b mohlo b\u00fdt odstran\u011bn\u00ed vizu\u00e1ln\u00edch prvk\u016f, ale v tomto \u010dl\u00e1nku si uk\u00e1\u017eeme lep\u0161\u00ed a efektivn\u011bj\u0161\u00ed zp\u016fsob. Jak ji\u017e z n\u00e1zvu vypl\u00fdv\u00e1, \u0159e\u0161en\u00edm bude lazy loading.<\/p>\n\n\n\n

Co je lazy loading? <\/h2>\n\n\n\n

V doslovn\u00e9m p\u0159ekladu „l\u00edne na\u010d\u00edt\u00e1n\u00ed“ zjednodu\u0161en\u011b \u0159e\u010deno umo\u017en\u00ed na\u010d\u00edtat vizu\u00e1ly rychleji. <\/p>\n\n\n\n

Bez lazy loadingu by se u\u017eivateli p\u0159i na\u010d\u00edt\u00e1n\u00ed na\u0161\u00ed str\u00e1nky na\u010detli v\u0161echny obr\u00e1zky najednou, ale s pou\u017eit\u00edm lazy loadingu se obr\u00e1zky na\u010d\u00edtaj\u00ed postupn\u011b v z\u00e1vislosti na tom, ve kter\u00e9 \u010d\u00e1sti webu se n\u00e1v\u0161t\u011bvn\u00edk moment\u00e1ln\u011b nach\u00e1z\u00ed. <\/p>\n\n\n\n

St\u00e1hnou se tedy v\u017edy pouze obr\u00e1zky viditeln\u00e9 na obrazovce. Zbytek obr\u00e1zk\u016f je p\u0159ed na\u010dten\u00edm nahrazeno placeholdery.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

V\u00fdhody a nev\u00fdhody Lazy loadingu<\/h2>\n\n\n\n

Lazy loading s sebou sice p\u0159in\u00e1\u0161\u00ed plno benefit\u016f. ale je vhodn\u00e9 m\u00edt na pam\u011bti, \u017ee ne v\u017edy mus\u00ed b\u00fdt jeho implementace vhodn\u00e1. <\/p>\n\n\n\n

V\u00fdhody<\/h3>\n\n\n\n