[Flexslider] add in initDelay

5 replies · opened Oct 9, 2019

JjohnjohnOct 9, 2019

Hi,

Am using a flexslider carousel after loading it within a AJAX modal, but am experiencing some problems in that the first image does not load in correctly.
So thought that maybe using the flexslider initDelay might help.
Is there a way to add in data-initdelay instead?

Thank you

SSemicolon WebSTAFFOct 9, 2019

Hello,

This is Definitely Possible. Consider finding the following code in the js/functions.js File:

ajaxContentAdded: function(mfpResponse) {
	SEMICOLON.widget.loadFlexSlider();
	SEMICOLON.initialize.resizeVideos();
	SEMICOLON.widget.masonryThumbs();
},

and replace it with:

ajaxContentAdded: function(mfpResponse) {
	setTimeout( function(){
		SEMICOLON.widget.loadFlexSlider();
		SEMICOLON.initialize.resizeVideos();
		SEMICOLON.widget.masonryThumbs();
	}, 1000);
},

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjohnjohnOct 9, 2019

Thank you for your fast reply!
The solution seems to work very well.
Would the code be included in functions.js in future updates?

Thank you

SSemicolon WebSTAFFOct 10, 2019

Hello,

Glad that your issues were resolved. Currently, we are changing the entire structure of js/functions.js File with Huge Improvements focussing on Page Speed and Load dissipation. We are not sure if we would really keep these settings but it would certainly have a much improved support for AJAX.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjohnjohnOct 10, 2019

Yes, it would basically fix a bug in Flexslider

Good to hear you are working on a faster structure for functions.js
Am looking forward to it

SSemicolon WebSTAFFOct 11, 2019

Hello,

Not exactly a Bug as none of the JS Plugins would work readily on AJAX. But we will try to address these in the Future Versions of Canvas.

Thanks for your Patience and you Anticipation. We hope you like it.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard