สิ่งตีพิมพ์ในหัวข้อ 'aos'
ตรวจจับคำขอดึงข้อมูลในเอกสาร
const observer = new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
if (entry.initiatorType === "fetch") {
console.log('Fetch request detected to', entry.name);
// For loading aos dynamically
// AOS.init();
}
}
});
observer.observe({
entryTypes: ["resource"]
});