The optimization options of Easy Social Share Buttons for WordPress is a set of tools to optimize plugin work. All options you can find in Advanced -> Optimizations
The optimization levels are a selection of pre-set options in the optimization setup screen. You can use those modes as a starting point.
- Custom – reveal all optimization options for manual selection.
- No optimizations – turn off any option from this screen. You can use it if you have a cache solution or optimization plugin on your site.
- Medium – extend the basic model with activation of the pre-compiled mode of the static resources.
- Advanced – add in addition to the medium also usage of selective style builder.
Manual Configuration of Optimization Options
CSS Style Optimizations
- Use minified CSS files – use the build plugin minified version of the CSS styles (recommended).
- Generate dynamic CSS in the footer instead of the header – dynamic styles are those that reflect specific changes or personalizations in the settings. For example, such a style can be a result of color change in the settings of the display method, building custom colors for various components, etc. The default loading is assigned like it is recommended to be in the header of the site (just after the static CSS files). The option here will change that behavior and load styles just before the end of the page. The option will make the header of site smaller (generated code from the plugin) but it may also produce “the blink” effect of styles (if your page content is larger).
- Generate dynamic user styles for active display positions only – plugin generates the dynamic styles for all positions, no matter they are active or not. That is made because you can dynamically change the active positions using advanced options for post types, device types, etc. But if you do not make such advanced settings it is recommended to use this option to eliminate the generation of previous dynamic styles, not used currently on site.
- Stylesheet type – control the version of the main stylesheet file that the plugin will use. The default option is full (everything). But if you do not need all the templates or counter styles you can try the slim (almost half the size). The change will remove from the set up a few templates and counter styles.
- User CSS style builder – the option will enable a CSS style builder. The build will produce a static resource file based on the selected stylesheets from the list. And the plugin will always use those styles. In case you did not make any selection it will load a blank style, waiting for fully user styles. Warning! This is an advanced option for experienced users only. If you are not sure you need this do not activate it – it may produce a problem with the share buttons display.
- Cache data storage – select where the plugin will store the generated static files. WordPress content folder is the root wp-content folder of the installation (this folder may not have permissions to save files and if so you can change to one of the other available). WordPress upload folder is the default folder where WordPress stores all uploads (wp-content/uploads) – it is enabled for writing by default. The last option is to store the files inside the plugin folder. Be aware that if you choose this mode on each plugin update you need to refresh the pre-compiled mode cache (because of how WordPress does updates).
- Generate unique filename – make all the time plugin generates and unique file name of the static resources. That eliminates the possibility of the user to see a previous version from the browser cache. Recommended for usage if you setup expiration tags on a server level.
- Remove the plugin version from static resources – this will remove the generated from Easy Social Share Buttons for WordPress version on the static resources. Instead of this WordPress will generate its version or none if additional optimizations are used. This will make the visitor browser to load at first from browser cache if present the static resources.
- Load static resources on – select where you need to load the plugin resources. You can choose between Everywhere, Selected Post Types or Selected Post/Page IDs. The default mode is everywhere and if you plan to use shortcodes, custom displays or content builders we recommend to keep it that way. The other mode you have is “On activated post types in Where to display” – this will load resources only for the post types you choose to show share buttons. If you use plugin components (not only share buttons) outside that list you may see visual glitches. The last mode is to load on selected post/page IDs. Using this mode you can make resources loaded only on the provided IDs. You can use this mode if plugin features will run only on those pages. This mode can be used even if you build content custom with a builder.