Rocket Loader ignore for [tagDiv] Slide

Posted in: Newspaper
Post count: 84

Good morning,

I want to use the rocket loader option of cloudflare because it has greatly improved the speed of the site.
The only problem is that it seems to be causing problems with the slider, so I would like to turn it off for this block (slide) only.
What is the particular javascript that the slider block uses? So as to add: (<script data-cfasync=”false” src=”/javascript.js”></script>).

Thank you

Post count: 22421

Hi,
All of the theme js can be found in the javascvript file in newspaper/js/tagdiv_theme.js.
the code for the slider is here: http://screencast.com/t/impfLKd586e
I hope this helps.
Thank you!

Post count: 84

Hi.

The ‘data-cfasync’ attribute must be added to the HTML script tag before the ‘src’ attribute (adding the attribute via JavaScript is not sufficient).

https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode-

Post count: 6535

Hi

The theme enqueue js file in td_wp_booster_functions.php here: http://screencast.com/t/u37yH86WwUP There is no html where these resources are called so you can try to change the code there and add data-cfasync. However this will not be enough because for slide block the theme generate js whitin php and that code cannot be excluded from rocked loader minimization.
We don’t recommend this type of minimization because the theme is not tested with theme and from our reports some of its features don’t work as expected.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.