jQuery(document).ready(function() { jQuery('#speedycache-generate-specific-cache').on('click', function(){ let ccss_disabled = jQuery('#speedycache-disable-critical-css:checked'); if(ccss_disabled.length){ alert('Critical CSS is disabled for this post'); return; } jQuery.ajax({ 'method': 'POST', 'url': speedycache_metabox.url, 'data': { 'post_id': speedycache_metabox.post_id, 'security': speedycache_metabox.nonce, 'action': 'speedycache_generate_single_ccss', }, success: function(res){ if(!res.success){ alert(res.data.message ? res.data.message : 'Something went wrong ! Unable to intitiate Critical CSS!'); return; } alert(res.data.message); } }); }); });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
delayjs.js | File | 1.19 KB | 0644 |
|
delayjs.min.js | File | 646 B | 0644 |
|
heartbeat.js | File | 0 B | 0644 |
|
index.html | File | 91 B | 0644 |
|
instantpage.js | File | 2.91 KB | 0644 |
|
lazy-load.js | File | 4.97 KB | 0644 |
|
metabox.js | File | 771 B | 0644 |
|