Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Slider does not load properly after vs 1.5.8

$
0
0

Replies: 0

I’ve been using your Twenty20 Image Before After plugin on a couple of websites. Thank you for this wonderful plugin.

But I’m having a before-after slider load issue after the recent changes. The image load behavior has become unpredictable. Sometimes it loads perfectly, other times only a few of the slider loads while sometimes none of the slider loads at all.

I tracked the changelog and saw that you’ve made this change: https://plugins.trac.wordpress.org/changeset/2696600

It is correct to fix the uncaught TypeError, but you need to wrap jquery code in ‘window.on(“load”, function(‘ like before instead of ‘jQuery(document).ready(function($)’ for it to function predictably. I have currently manually placed the following code to solve both of the issues.

$output .= ‘<script>jQuery( document ).ready(function( $ ) {‘;
$output .= ‘$(window).on(“load”, function() {‘;

I hope the next version will implement this code so that the intermittent slider load issue does not occur.


Viewing all articles
Browse latest Browse all 59525

Trending Articles