Reduce javascripts on frontend (liveCSS, jqueryMigrate etc.)

Posted in: Newspaper
Post count: 2

Hi
I’m working on making my site https://aastik.in fast.
1. Only home page has the revolution slider, how to prevent corresponding js from loading in other pages ?
2. Site frontend loads liveCSS js file without anyone logged in (it’s a bug IMHO)

Post count: 20688

Hi,

1. I have no idea how that would be possible, haven’t tried doing this. The plugin resources will be loaded at all times usually. From within the plugin I don’t think it is possible, you could check through the documentation
https://www.themepunch.com/revslider-doc/slider-revolution-documentation/
Or go through the plugin files and try to set a condition where the resources are loading, or maybe with a function
https://wordpress.stackexchange.com/questions/695/restricting-a-plugin-to-only-load-its-css-and-js-on-selected-pages
Also there could be optimization plugins that may be capable of such a restriction for plugins.

2. I believe this is already added on our to do list, it will be modified in coming updates. Sorry for the inconvenience.

Thanks

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