Setting Lazyload Untuk Template JetTheme

Lazyload Image/Gambar

Pertama anda bisa mengupload di media seperti normal yang dilakukan lalu masuk ke tampilan HTML pada pojok kiri atas.

Cara Simple

Perhatikan code anda, pasti anda mendapatkan code yang tidak beraturan seperti ini

<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJbXfUkNIFZQ3AksqDBXdWWGQXhBxfCB8KwgWdwO2D5p9trN0NX9raH4BW8M_d251B8tMQyfDc8iWEAwdWP8K1h3t4NX6eblRyHxw8-5ch4oE4nGmeA8MkvQsTLQEVnltnPwf6LSqvv2M/s2048/lamp.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1371" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJbXfUkNIFZQ3AksqDBXdWWGQXhBxfCB8KwgWdwO2D5p9trN0NX9raH4BW8M_d251B8tMQyfDc8iWEAwdWP8K1h3t4NX6eblRyHxw8-5ch4oE4nGmeA8MkvQsTLQEVnltnPwf6LSqvv2M/s320/lamp.jpg" width="320" /></a></div>

lalu tambahan code <noscript> ... </noscript> diantaranya contohnya menjadi seperti ini:

<noscript>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJbXfUkNIFZQ3AksqDBXdWWGQXhBxfCB8KwgWdwO2D5p9trN0NX9raH4BW8M_d251B8tMQyfDc8iWEAwdWP8K1h3t4NX6eblRyHxw8-5ch4oE4nGmeA8MkvQsTLQEVnltnPwf6LSqvv2M/s2048/lamp.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1371" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJbXfUkNIFZQ3AksqDBXdWWGQXhBxfCB8KwgWdwO2D5p9trN0NX9raH4BW8M_d251B8tMQyfDc8iWEAwdWP8K1h3t4NX6eblRyHxw8-5ch4oE4nGmeA8MkvQsTLQEVnltnPwf6LSqvv2M/s320/lamp.jpg" width="320" /></a></div>
</noscript>

Cara Manual

Untuk cara manual hal ini dilakukan agar code lebih bersih, pertama ambil code tag image dari gambar yang anda upload di blogger,

<img border="0" data-original-height="1371" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJbXfUkNIFZQ3AksqDBXdWWGQXhBxfCB8KwgWdwO2D5p9trN0NX9raH4BW8M_d251B8tMQyfDc8iWEAwdWP8K1h3t4NX6eblRyHxw8-5ch4oE4nGmeA8MkvQsTLQEVnltnPwf6LSqvv2M/s320/lamp.jpg" width="320" />

Lalu anda bisa masukan di code diantara <noscript> ... </noscript> berwarna dibawah ini, pastikan terdapat width atau data-original-width dan sudah di atur. untuk full size anda bisa membuatnya menjadi width="728"

<noscript>
<img border="0" data-original-height="1371" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJbXfUkNIFZQ3AksqDBXdWWGQXhBxfCB8KwgWdwO2D5p9trN0NX9raH4BW8M_d251B8tMQyfDc8iWEAwdWP8K1h3t4NX6eblRyHxw8-5ch4oE4nGmeA8MkvQsTLQEVnltnPwf6LSqvv2M/s320/lamp.jpg" width="320" />
</noscript>

Lazyload Adsense

Kamu cukup masukan kode seperti yang telah diwarnai pada widget Layout/Tata Letak, kode iklan ini bisa kamu dapatkan Pada sebelah kiri menu halaman Adsense, click Ads/iklan pilih Overview/Ikhtisar, setelah masuk halaman Overview, pilih tab ke2 By ad unit, dan pilih iklan seleramu.

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234567890XXXXXX"
     crossorigin="anonymous"></script>
<!-- adsense -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1234567890XXXXXX"
     data-ad-slot="123457XXXXX"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

Lazyload Iframe, Video, Audio

Untuk Lazyload Selain image seperti Iframe (Youtube, Google map, dll), Video, dan Audio

<iframe class="lazyload" title="Youtube"
  width="400" height="300" allowfullscreen
  allow="accelerometer;autoplay;encrypted-media;gyroscope;picture-in-picture"
  data-style="background: url(https://img.youtube.com/vi/Uz970DggW7E/hqdefault.jpg) 50% 50% / cover no-repeat;"
  data-src="https://www.youtube.com/embed/Uz970DggW7E"></iframe>

<picture class="lazyload">
  <source media="(min-width:800px)" data-srcset="https://picsum.photos/800/1200">
  <source media="(min-width:600px)" data-srcset="https://picsum.photos/600/900">
  <img data-src="https://picsum.photos/200/300" alt="Photo" style="width:auto;">
</picture>

<audio class="lazyload" controls>
  <source data-src="sound.ogg" type="audio/ogg">
  <source data-src="sound.mp3" type="audio/mpeg">
  Your browser does not support the audio tag.
</audio>

<video class="lazyload" width="320" height="240" controls>
  <source data-src="movie.mp4" type="video/mp4">
  <source data-src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Thanks for https://github.com/shinsenter/defer.js/

Next Post Previous Post
58 Comments
  • Sanwitana
    Sanwitana 31 May, 2021

    kalo lazyload MGID gimana mas?

    • Jettheme
      Jettheme 02 June, 2021

      Belum ada yg otomatis untuk MGID, ditunggu update selanjutnya

  • Balung Cilik
    Balung Cilik 13 June, 2021

    Halo mas admin, saya mau tanya. saya sudah lakukan sesuai tutorialnya untuk lazyload adsensenya tp kok iklannya g muncul ia alias nge blank putih ?

    • Jettheme
      Jettheme 15 June, 2021

      coba update lagi, sudah saya fix untuk lazyload adsensenya

    • Admin
      Admin 15 June, 2021

      Sama mas, iklannya juga ga muncul, ngeblank putih doang. Padahal udah saya ikuti tutorial di atas mas.

    • Jettheme
      Jettheme 15 June, 2021

      1. Pastikan jangan memasukan code script adsense pada tema HTML.
      2. Pastikan hapus adsense bawaan blogger pada menu Earnings/Penghasilan.
      3. Cukup masukan nomor ID pada Tataletak JetScript Option contoh
      const caPubAdsense = 1234567890;

      jika masih ada kesalahan, pertanyaan, bisa langsung tanyakan di grup
      t.me/jettheme

    • samuelpasaribu.com
      samuelpasaribu.com 24 August, 2021

      Izin tanya min. Saya pengguna templati jettheme.

      JetScript Option yang dimaksud itu gimana ya ?

      Pada saat saya daftar adsense dan menempelkan kode untuk menghubungkan blog ke adsense (script) kecepatan blog drop menurun drastis. mohon solusinya min

    • Jettheme
      Jettheme 28 August, 2021

      bisa tanya kegrup t.me/jettheme kalau masih bingung

  • Restu Kersana
    Restu Kersana 28 June, 2021

    Hallo min, untuk pemasangan google analytic U-XXXXXXXX atau UA-XXXXXXXX ?

    • Tentang Berbagi
      Tentang Berbagi 02 July, 2021

      ijin menjawab -> UA

  • Dua lipa.id
    Dua lipa.id 15 July, 2021

    apakah lazload img ini sdh berlaku otomatis pada gambar postingan blog ya

  • Cindy
    Cindy 08 August, 2021

    Cara supaya gambar itu membentang seperti gambar diatas bagaimana ya?

    • Jettheme
      Jettheme 21 August, 2021

      pakai lazyload image

  • Aji fratama
    Aji fratama 18 August, 2021

    Itu cukup kode ID analytic apa kode pelacakan nya soal nya punya saya gk bisa di lacak di aplikasi Google analytic

    • Jettheme
      Jettheme 21 August, 2021

      sama seperti code ID analytic blogger sebelumnya

  • SITEDAYEXE
    SITEDAYEXE 04 September, 2021

    min mau nanya nih ko jettheme 2.7 sama 2.8 beda yah yg v2.7 tiap kitamasukin h2 di atasnya terdapat out of content tp ko yg 2.8 gada out of content yah? padahal bgus klo ada ot of contentya tuh mnrt saya hehe

    • Jettheme
      Jettheme 05 September, 2021

      tetap ada kok

  • Lexa ID
    Lexa ID 11 September, 2021

    Ntahlah, padahal ini sya pake versi terbaru 2.8

    Gada daftar isinya bisa di cek

    https://resepjavanese.blogspot.com/2021/08/resep-gulai-daun-kacang-simpel.html

    • Jettheme
      Jettheme 12 September, 2021

      di postnya ada html yg error, coba di copas ke notepad dulu, trus post di post yg baru

  • Lexa ID
    Lexa ID 14 September, 2021

    Sama aja gan kalo yg < itu lebih huruf aja padahal sya udah Bahan tetep ga muncul

    • Jettheme
      Jettheme 14 September, 2021

      masuk ke grup, biar nanti di lihat apa yang error

  • Lexa ID
    Lexa ID 18 September, 2021

    Grupnya mana mas

  • NathanCreinno
    NathanCreinno 29 September, 2021

    mas saya mau tnya utk lazylod vidio gmn masukn kode
    apa sama kayk buat image ?
    makasih

    • NathanCreinno
      NathanCreinno 29 September, 2021

      pake yotube mas

    • Jettheme
      Jettheme 29 September, 2021

      bisa di lihat contohnya di bagian Lazyload Iframe, Video, Audio, hanya perlu di ganti url nya

  • Master
    Master 15 October, 2021

    Mas, kok ga bisa di install ya? Udh coba upload tapi gagal terus coba copas langsung juga eror. Tulisan erornya widget-setting PageList50 mas knp y?

    • Jettheme
      Jettheme 16 October, 2021

      karena pembaruan dari blogger, file yang lama sudah tidak support, silahkan download file terbaru yang sudah di sesuaikan

  • Admin
    Admin 17 October, 2021

    Awesome Template, is it safe to remove m=1, as this theme has this feature built in?

    • Jettheme
      Jettheme 18 October, 2021

      Yes, no problem

  • Cahloker
    Cahloker 18 October, 2021

    cara memasang di atas judul artikel gimana min

    • Jettheme
      Jettheme 18 October, 2021

      memasang apa ya? ada widget "before post" letaknya diatas judul artikel

  • virichiyan
    virichiyan 09 November, 2021

    image slider code pls..

  • Bangla Tech Doctor
    Bangla Tech Doctor 16 December, 2021

    can I use Image ALT tag when it using lazyloading??
    if yes how?
    when I use noscript tag
    alt tag of a image removed atomatically...

    • Jettheme
      Jettheme 17 December, 2021

      Of course, you can still use it

  • Operator
    Operator 05 January, 2022

    setting lazy load iklan google adsense otomatisnya gimana mas?

    • Jettheme
      Jettheme 22 January, 2022

      jika yang manual sudah yang otomatis sudah langsung muncul

  • Jawad Ahmed
    Jawad Ahmed 06 January, 2022

    How we can add automatic table of content like you have added

    • Jettheme
      Jettheme 22 January, 2022

      You just need to add heading and subheading to the post

  • Jawad Ahmed
    Jawad Ahmed 05 March, 2022

    How to add anchor ad in mobile version jettheme.
    Great theme really great!

  • Dipesh Dulal
    Dipesh Dulal 24 March, 2022

    https://www.techygen.com/best-blogger-templates/
    I have listed Jet Theme #1 Blogger Theme of 2022.
    Keep it up !

  • Jawad Ahmed
    Jawad Ahmed 10 April, 2022

    Automatic ads in postbody are penetrating other div blocks!
    Any solution?

  • tribun
    tribun 28 April, 2022

    mantap suhu

  • N4V4
    N4V4 20 July, 2022

    halo mas, mau tanya,,,ini ko ada iklan muncul ya di theme jet yg free, itu gimana cara ilangin nya ya? soalnya saya cari ads/pub ga ktmu

  • Muhiuddin Alam
    Muhiuddin Alam 02 August, 2022

    When I add EZOIC ad code then site speed is too much slow in 'page speed insight'. what to do. PLEASE REPLY.

  • Tim ZTVNEWS.ID
    Tim ZTVNEWS.ID 11 August, 2022

    Cara pasang iklan parallax kayak min?

  • OnuronIT
    OnuronIT 20 August, 2022

    This comment has been removed by the author.

  • OnuronIT
    OnuronIT 20 August, 2022

    This comment has been removed by the author.

    • Sutrisno
      Sutrisno 05 September, 2022

      untuk scrip lazyload nya di letakan dibawah kode adsense yah ma ?

    • Sutrisno
      Sutrisno 05 September, 2022

      This comment has been removed by the author.

  • budiliauw87
    budiliauw87 07 September, 2022

    Keren banget pak template nya.. izin pakai ya :) sekalian pelajari cara buat template blogger.

  • Sutrisno
    Sutrisno 04 February, 2023

    Untuk code lazy image itu di letakan dimana yah ?

  • Sutrisno
    Sutrisno 04 February, 2023

    Kok Lazyload adense yang bekerja yah ?

  • Md Manik
    Md Manik 24 February, 2023

    sir please update my site freecatv.blogspot.com

  • Papel de Parede Grátis
    Papel de Parede Grátis 25 April, 2023

    bagaimana cara mematikan kode lazy untuk adense? how do i turn off the lazy code for adense?

  • Dhanjee Rider
    Dhanjee Rider 18 May, 2024

    The speed has been decreased in now day's

  • Rashid
    Rashid 12 July, 2024

    Jet Theme is an awesome blogger template. Many many thanks to the theme developer for providing such a good quality blogger theme. But I have some questions. I hope you will answer the question.

    I created a blog using this theme. My blog homepage options score 100/100 in Google PageSpeed ​​Insights tool. But only in the post field its speed score is 92/100. But it's not your fault. Because this problem is caused by the custom blockquote that's I created.

    The custom blockquote I created has automatically added copy button, facebook share button, whatsapp button and twitter button. Each button is added automatically via Raw JavaScript. A blockquote has a total of 9 html classes. Thus when I add 100 blockquotes or more blockquotes to a post, numerous DOMs are created. And Google PageSpeed ​​Insights then the page speed decreases because of that DOM.

    But your blog has a way to solve this problem very easily. Simply adding the "noscript" tag before the blockquotes solves the…

    • Rashid
      Rashid 12 July, 2024

      But your blog has a way to solve this problem very easily. Simply adding the "noscript" tag before the blockquotes solves the DOM problem. But my question is whether Google can read blockquotes in this case. Or will it have any negative effect on SEO?

      But you use shinsenter/defer.js in your theme to solve such problem. In this case, defer.js can be used to solve the DOM problem of the blockquote I created? If it can be solved using defer.js then please let me know the solution.

      I can send you the blockquote javascript if you need it. Thanks...

Add Comment
comment url