MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/www/wp-content/plugins/swift-performance-lite/modules/cache/ajaxify.php
<script>
      function swift_ajaxify(){
            if (typeof jQuery == 'function' && jQuery("<?php echo implode(',', $ajaxify);?>").length > 0){
                  jQuery(function(){
                        jQuery.get(document.location.href.replace(/#(.*)$/,'') + (document.location.href.match(/\?/) ? '&' : '?') + 'nocache=' + Math.random(), function(response){
                              var nodelist = jQuery.parseHTML(response);
                              <?php foreach ($ajaxify as $item) :?>
                                    jQuery("<?php echo $item?>").each(function(){
                                          var element = jQuery(this);
                                          jQuery(nodelist).each(function(i, node){
                                                if (jQuery(node).is("<?php echo $item?>")){
                                                      jQuery(node).addClass('swift-lazyloaded');
                                                      jQuery(element).replaceWith(node);
                                                      delete(nodelist[i]);
                                                }
                                                else if (jQuery(node).find("<?php echo $item?>").length > 0){
                                                      jQuery(node).find("<?php echo $item?>").each(function(i, node_in){
                                                            jQuery(node_in).addClass('swift-lazyloaded');
                                                            jQuery(element).replaceWith(node_in);
                                                      });
                                                }
                                          });
                                    });
                                    jQuery("<?php echo $item?>").trigger('swift-performance-ajaxify-item-done');
                              <?php endforeach; ?>
                              jQuery('body').trigger('swift-performance-ajaxify-done');
                        });
                  });
                  swift_ajaxify = false;
            }
      }
      swift_ajaxify();
</script>