Unnecessary loading of main_css makes site slow!
I have the Mailchimp plugin set up on my site to not use custom styling, however the styles are still queued up to be loaded when my pages load. For whatever reason, the loading of these styles is very slow (>1sec, in some cases nearly 5 sec) and in turn, slows my entire site down.
It seems that these styles are loaded up at the bottom of
mailchimpSF_load_resources(), but are not conditionally loaded. I have not had the opportunity to play with it yet, but I don’t understand why these styles would always be loaded if we’re given the option of not using custom styling. I think that the loading of these styles should be guarded by something along the lines of
if (get_option('mc_custom_style') == 'on' && !is_admin()).
Is the non-conditional loading of these styles done by design? Or is it a bug?
- The topic ‘Unnecessary loading of main_css makes site slow!’ is closed to new replies.