The updated version of WPDM Lazy Load is not working. After the timer ends it doesn’t download anything. The page doesn’t request any URL.
I have found the fix and it was caused because of the templates. The problem lies in the below code:
jQuery.post("'.site_url('/').'",{wpdm_lazy_download_timer:"clear",pid:'<?php echo $lazy_download_id; ?>'}, function(){
location.href = "<?php echo $lazy_download_url; ?>";
I have modified it to below code and it works:
jQuery.post("<?php echo site_url('/'); ?>",{wpdm_lazy_download_timer:"clear",pid:'<?php echo $lazy_download_id; ?>'}, function(){
location.href = "<?php echo $lazy_download_url; ?>";
The issue was because site_url('/')
was not able to get the site URL. Please fix this issue and release the update.
EDIT:
Also, This code needs to be fixed as well in the files on the templates folder.
From:
<div id="wpdm_lazy_download_<?php echo $lazy_download_id; ?>" class="circle '.$class.'" >
To:
<div id="wpdm_lazy_download_<?php echo $lazy_download_id; ?>" class="circle <?php echo $class; ?>" >