Issue of S2M code within header

Hi there,

I have had a conflict appear that mucks up the use of tables within Thrive Themes. After some investigation support at TT are saying the following:

"Before we go further with this, it seems that there is some conflict within the s2member plugin : https://cl.ly/ef21244b051a

– this is affecting how the scripts are loading, and as I further checked, the script is being called before the library itself : https://cl.ly/4b9190452978

If ever you manually added the code regarding the membership in the header, I would suggest moving it on the footer area instead. However, If you are not familiar with this, you may want to relay this information with the plugin developer and ask them for some insight on how to solve this."

Site: https://englishconfidenceunlocked.com/

Is there anything you can say or suggest about this?

thank you
Andrew

Hi Andrew.

Maybe the setting here helps with that? WP Admin > s2Member > General Options > CSS/JS Lazy Loading

Also, I seem to remember that some plugins that optimize JS loading, can change the order in which they’re loaded, or move it to the bottom of the page so it loads after the rest.

Thanks Cristian,

Lazy loading is already enabled. So not much joy there.

I think that was what TT was hoping S2member could do, move the JS loading to the end of the queue. Ah, so you are suggesting a specific plugin just for that purpose…

Maybe I will need to look into that…just want to know whether what TT suggested could be done somehow within S2. Avoid further loading the site with yet another plugin. :slight_smile:

Yeah, I know what you mean…

I remember seeing a setting like that, but I got confused, it wasn’t in s2Member, it was in ZenCache years ago, that has a very similar interface.

There are a bunch of plugins that can do this, and will do other useful things for your site to improve it, so it may be worth your time checking them out. https://wordpress.org/plugins/search/move+js+footer/

Let me know how it goes :slight_smile:

Thanks again. Will follow this up and see where it takes me! :slight_smile: