• Resolved jeremynxt

    (@jeremynxt)


    There are multiple imports in your css files linked to cdn’s. The problem with this is these resources cant be cached with plugins to be delivered faster. Could you please add an option to use local files or cdn files? Currently FontAwesome and Animate.css:

    social-share-buttons-by-supsystic\app\assets\css\supsystic-ui.css (1 hits)
    	Line 2: @import "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css";
    
    social-share-buttons-by-supsystic\src\SocialSharing\Projects\assets\css\base.css (1 hits)
    	Line 3: @import "//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css";
    
    social-share-buttons-by-supsystic\src\SocialSharing\Projects\assets\css\button\standard.css (1 hits)
    	Line 1: @import "//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css";
    
    social-share-buttons-by-supsystic\src\SocialSharing\Projects\assets\css\button\standard.less (1 hits)
    	Line 1: @import "//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css";
    social-share-buttons-by-supsystic\src\SocialSharing\Projects\assets\css\base.css (1 hit)
    	Line 4: @import "//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.6/animate.min.css";

    https://wordpress.org/plugins/social-share-buttons-by-supsystic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author supsystic

    (@supsysticcom)

    Hello!

    All these cdn servers have enabled cache, and if we will add all these files to our plugin – it could very increase the size of plugin.
    But if it is very critical for you – contact us through our internal support, and we will show where in the code it is necessary to change the addresses of these libraries – in order to take them from your servers.

    Thread Starter jeremynxt

    (@jeremynxt)

    Thank you for your reply!

    While you are correct, they are still separate files ‘ABOVE THE FOLD’ that are causing issues with pagespeed and since their expires time is too low, 3 hours also hurts the score.

    fontawesome.min.css is 21.4KB
    animate.min.css is 53.2KB

    that’s a total of 74.6KB

    I’m fully aware of the location of the code, problem is updates and having to change it on each update. If I’m going to custom code the plugin, I will just make my own version of your’s with this option and make it opensourced on github but rather not waste my time.

    You could simple add an option for the user to put the location to their files they host locally, that would solve your 74.6KB increase in plugin size + make people with jquery/fontawesome already in their theme happy, since they could use their on versions than being forced to have multiple versions of the same css included in above the fold content.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Optional to use cdn or locally hosted .css files’ is closed to new replies.