blank

mrfdn.com – Saya sedang asyik ngulik Express dan HTMX. Dan terasa menyenangkan karena HTMX seperti magic.

Hal-hal yang terasa malas dikerjakan dengan susah payah kini bisa dilakukan dengan mudah.

Contohnya kali ini saya ingin menampilkan indikator loading saat proses fetching data di server.

Caranya sangat mudah, HTMX memiliki atribut yang bernama hx-indicator.

Atribut ini bisa ditempatkan pada tombol atau tag html yang mengeksekusi fetching data. Di sini saya menggunaakan tag <button> untuk melakukan fetching data.

<button hx-trigger="click" hx-get="/fetchdata" hx-target="#lihatdata" hx-indicator="#loading">Fetch</button>

Kemudian buat tag baru untuk menempatkan loading indicator, bisa berupa text atau gambar.

Di dalam tag tersebut set atribut class="htmx-indicator". Contohnya seperti ini:

<div id="loading" class="htmx-indicator">Loading data...</div>

Sehingga nanti saat tombol Fetch ditekan maka secara otomatis indicator akan aktif dengan menampilkan tulisan Loading data&mldr;, dan setelah data sudah tampil maka indicator itu akan otomatis hilang.

Demikian tutorial singkat tentang cara menampilkan indikator loading dengan htmx.

Semoga bermanfaat.

PakarPBN

A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.

In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.

The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.

Jasa Backlink

Download Anime Batch

Leave a Reply

Your email address will not be published. Required fields are marked *

TOP