Changeset 2899203
- Timestamp:
- 04/14/2023 03:07:50 PM (3 years ago)
- Location:
- jinx-fast-cache/trunk
- Files:
-
- 3 edited
-
assets/js/jinx-fast-cache.js (modified) (1 diff)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jinx-fast-cache/trunk/assets/js/jinx-fast-cache.js
r2893345 r2899203 10 10 return response.text(); 11 11 }).then(html => { 12 element.innerHTML = html; 12 element.innerHTML = html; 13 element.dispatchEvent(new Event('jinx-fast-cache-inject')); 13 14 }); 14 15 -
jinx-fast-cache/trunk/index.php
r2893514 r2899203 5 5 * Plugin URI: https://wordpress.org/plugins/jixn-fast-cache/ 6 6 * Description: Blazing fast full page cache. 7 * Version: 0.7. 17 * Version: 0.7.2 8 8 * Author: SquareFlower Websolutions (Lukas Rydygel) <hallo@squareflower.de> 9 9 * Author URI: http://squareflower.de -
jinx-fast-cache/trunk/readme.txt
r2893345 r2899203 109 109 Every shortcode or block between "jinx_fast_cache_inject" will be parsed and injected via ajax. Note that this may cause problems when working with JS events. 110 110 111 ## Injection Callbacks 112 113 You may trigger custom JS after dynamic content has been injected. 114 115 Using jQuery: 116 117 $('.element').on('jinx-fast-cache-inject', function(e) { 118 // so smth. with e.target or this 119 }); 120 121 Using VanillaJS: 122 123 element.addEventListener('jinx-fast-cache-inject' (e) => { 124 // so smth. with e.target 125 }, false); 126 111 127 ## Tags 112 128 … … 171 187 - [x] Add tags to flush related pages 172 188 - [x] Add shortcode for injects 189 - [x] Add JS events for injects 173 190 174 191 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.