Revolutionary slider plugin problem

Hi,
The plugin is giving is slowing down my website due to this error:
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 108.0KiB.

https://tarekrabaa.com/assets/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js?rev=5.4.6.3.1
https://tarekrabaa.com/assets/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js?ver=5.4.6.3.1
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 63.3KiB.

https://tarekrabaa.com/assets/plugins/revslider/public/assets/js/jquery.themepunch.revolution.min.js?rev=5.4.6.3.1
https://tarekrabaa.com/assets/plugins/revslider/public/assets/js/jquery.themepunch.revolution.min.js?ver=5.4.6.3.1

How to solve this?

Regards,
Tarek

Also this plugin cannot be deleted from Wordpress.
I tried many times. You cannot delete because you cannot deactivate. Not working
So i deleted from the Webhost.
What is strange, I have https://tarekrabaa.com and subfolder https://tarekrabaa.com/ar/
The Revslider plugin work good on the subfolder and cause no problem but it cause the problem on the tarekrabaa.com

I deleted the plugin waiting for your solution.
N.BL I contacted siteground who told me to contact the developer of the X-theme.

Regards

Hello There,

Thanks for writing in! Do you have a Multi lingual site? Did you use any plugin to manage the language translation? Please keep in mind that having a root directory and /lang/ directory is not the proper way to have in a multi lingual site. It is best that you use a plugin like Polylang or WPML. Having these two directories may have created an issue which has affected your Rev Slider plugin files and thus contributed to a slow loading site.

Please let us know how it goes.

Hello,
I am not using those plugins.
I am translating by myself.

Hello There,

Are you using only the .pot file to translate the file? Could you please provide further explanation how you translated the file and why you have two separate installations?

For more details how you can translate the theme, please check out the recommended translate guide:

Please let us know how it goes.

Hi,

I am not using any tools for translating. I am writing in English and in Arabic.
For the arabic site, i just added a domain on wordrpess tarekrabaa.com/ar/ and i am writing in arabic on it from RTL.
The problem in slider revolution plugin

Rgds,

The REVSLIDER plugin is generating javascript and slow down dramatically the website

Hi Tarek,

Can you specify where can we see those errors.

All I can see is a js syntax error in the console.

Kindly change your in Cornerstone > JS from

$(document).ready(function() {
		$(document).delegate('.open', 'click', function(event){
			$(this).addClass('oppenned');
			event.stopPropagation();
		})
		$(document).delegate('body', 'click', function(event) {
			$('.open').removeClass('oppenned');
		})
		$(document).delegate('.cls', 'click', function(event){
			$('.open').removeClass('oppenned');
			event.stopPropagation();
		});
	});

to

jQuery(document).ready(function($) {
		$(document).delegate('.open', 'click', function(event){
			$(this).addClass('oppenned');
			event.stopPropagation();
		})
		$(document).delegate('body', 'click', function(event) {
			$('.open').removeClass('oppenned');
		})
		$(document).delegate('.cls', 'click', function(event){
			$('.open').removeClass('oppenned');
			event.stopPropagation();
		});
	});

Then refer to the link below on how to optimize your site for fast loading.

Thanks

1 Like

Hello,

I changed it but no improvement.
My website speed without Revlider is grade A and with Revslider it drops to grade C

Hi,

That code change was meant to fix the js error but not to speed up your site.

You can try adding the code below in your child theme’s functions.php file to fix defer js

function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
    return "$url' defer ";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );

Hope that helps.

Hello,
When i added this code, the speed of the site improved but i got another problem. Cornerstone stopped opening on the main page.

Hi,

You can try this third party plugin.

By using that plugin, you have the option to exclude js files.

Hope that helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.