PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

How To Javascript Defer or Delay Fox Currency in Cache?

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

If we wanted to defer Javascript or delay for this plugin in our litespeed cache what terms would we use to do this?

Regards

LP

Hello

If you mean what to exclude:

/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/woocommerce-currency-switcher/(.*)
woocs

Hi,

Okay thank you. We have excluded that in our litespeed cache but when we activate Load JS Deferred (Delayed option) the currency widget spins and never stops loading. If we change the setting in litespeed to Deferred, the currency widget loads correctly.

Can you offer any advice?

Also in mobile view our litespeed cache with the fox currency widget is having an issue. The sizing is thrown off when litespeed cache is activated. Do you know how we can exclude this widget from being cached or affected by litespeed?

Hello

add these exceptions to Load JS Deferred

The sizing is thrown off when litespeed cache is activated. - Please  drop me  exact  link to the  issue

Hi,

The exceptions were already added to load JS deferred but the loading issue is still there.

Link is already in the private area where you can view the menu on mobile where the fox currency widget is located (bottom of the menu)

you can view the menu on mobile   - it is device independent. This happens when the user is not registered as an admin.

Yes, I see the problem, the script simply does not initialize.

Please  drop me  wp-admin access  - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png - I will check  it

Hi. Sorry i don't know what you mean about the fox currency widget sizing being off when litespeed cache is activated in relation to device dependency? It happens if admin are logged in or not and all all of our devices tested.

Please find admin access in the private area

regards

Hello

Load JS Deferred - I don't see where the field for setting the exclusion of JS files is

 

Hi,

You get to it here:

Litespeed cache > Page optimisation > Tuning [8]

Let me know if you need anything else

Please add this  CSS:

.mobile-nav .woocs-style-1-dropdown .woocs-style-1-select>i img {

width: 25px;

}

and do a test

Hello Load JS Deferred - I don't see where the field for setting the exclusion of JS files is

Is the solution to load JS Deferred and not JS Delayed with an exclusion? (we usually use JS delayed)

Please add this  CSS:

.mobile-nav .woocs-style-1-dropdown .woocs-style-1-select>i img {

width25px;

}

Thank you this improved the look of the fox currency widget but the dropdown arrow styling looks odd. Is there a way to get this styled better?

Warm Regards

LP

Hello

I do a test with Delayed - everything seems to be working correctly. https://share.pluginus.net/image/i20231116103125.png - I'll add these exceptions

Is there a way to get this styled better?  - Please describe it in more detail

Hi, Thank you the delayed JS exceptions seem to be working.

Please see the image link below for the currency widget arrow dropdown styling issue. we thought it would adopt the theme styling (woodmart) but it doesn't seem to be the case?

https://ibb.co/Vj8xZDf

Best wishes

LP

 

 

Hello

Ok! then just use"Not styled drop-down" as a switcher type

Hi

Sorry I don't understand. Can you give a little more information on how to do this?

Warm Regards

LP

Hello

Please check this  option - https://share.pluginus.net/image/i20231121101937.png