redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Select2 question on slow loading

Open Webcreations907 opened this issue 12 years ago • 1 comments

Hello,

I noticed when using the google fonts/select2 option, why does it load so slow when you have just a couple of them on the page?

I found that if I add redux.field_objects.typography.init(); inside field_typography.min.js within the doc ready like below then it seems to load instantly

a(document).ready(function(){redux.field_objects.typography.init();})

Was/is there a reason for not adding that and commenting it out on the field_typography.js unminified version?

WP 4.0 Redux v3.3.9.6

Thanks for any input on that. :smile:

Webcreations907 avatar Nov 07 '14 06:11 Webcreations907

That line should not be there, in that, is was commented out because we don't use it anymore. Activating it will disable the lazy load. Any problem that come from that will have to go unsupported. It will also be undone with any future updates.

kprovance avatar Nov 07 '14 07:11 kprovance