
內容簡介
通常,這是透過一種叫做 AJAX 的技術來實現。該技術以異步 (在背景中) 的方式讀取數據,因此可以在不需要重新載入頁面的情況下更新您的內容。您可以通過添加此外掛來重新評估您當前網站,而不是使用複雜的 JS 框架。
JavaScript 回調函數
在您的 JavaScript 库中使用以下回調函數,或者您可以直接使用 wp_footer hook 添加自定義腳本。
wp_ajax_load_complete = function() {
// YOUR JS HOOKS
}
外掛功能
在不重新載入頁面的情況下加載內容。
使用輕量級的 JS。
已在使用多個外掛的網站進行測試。
外掛標籤
開發者團隊
原文外掛簡介
Enhance your website’s performance and user experience with our Ajax Page Loading Plugin. Load content asynchronously without reloading the page, thanks to the power of AJAX. Enjoy seamless content updates and a smoother browsing experience with lightweight JavaScript implementation—no heavy JS frameworks required.
Key Features:
🔹 Seamless Content Updates: Load new content without refreshing the entire page, ensuring a fluid and uninterrupted user experience.
🔹 Lightweight Implementation: Boost your website’s performance with minimal JavaScript, avoiding the bloat of heavy frameworks.
🔹 Customizable JavaScript Callback: Leverage the wp_ajax_load_complete callback function for tailored JS hooks and custom behaviors.
JavaScript Callback Function
Use below callback function in your javascript library or you can just directly use * wp_footer * hook for add custom script.
wp_ajax_load_complete = function() {
// YOUR JS HOOKS
}
