Zyscripts Enhancements
Zyscripts Optimizations - Wordpress Plugin
by Z. Bornheimer (Zysys) · github.com/zachbornheimer/zyscripts-wp · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/zachbornheimer/zyscripts-wp/archive/refs/heads/master.zipReadme
Zyscripts Optimizations - Wordpress Plugin
Licensed under the GPLv3 Bug Finders, if you find a bug, leave it to me as an issue...I may give you free access as a thank you.
This wordpress plugin allows for the optimization of javascript and css on a wordpress site. Note, the first time you visit your site after a change (or after you load it for the first time), it will be very slow. This is because it is compiling the code you requested. It does not compile your code if it is broken or if you have not registered your site at zyscripts.com
Optimizations:
- Asynchronously load enqueued javascript or, if it is a known issue, load it synchronosly
- Sends closure-compiled version of all registered scripts (JS)
- Implementation of a load balancer - by having half of your traffic being requested from the zyscripts server,
- Optimizes and Minifies CSS
- It automatically rewrites relative urls to be absolute during compile time (CSS)
Precautions:
- This plugin will only work if you have registered your site with zyscripts.com
- If you enable the plugin and it your site is not registered with the zyscripts engine, it returns your original script, unmodified
- If you break something in your script, it will not compile, but will return the original copy of the file
- If you change anything in the file, it updates the cache
- By not caching on your server, visitors don't have the capcity to crash your site due to caching in progress
- By not caching on your server, you are able to see the uncompress, unmodified versions of your code, edit it and have it served as if it were compressed and optimized.
Results Thus Far:
- So far, sites that have been using this plugin have seen improvements from 10% - 60% in load time.
- Sites that have used this plugin, so far, also seem to have more stable code.
Multisite:
- If you install this plugin in mu-plugins, it will automatically apply to every site, but then you won't be able to update it. -- It's best to just network enable this plugin and update when necessary.
Application:
- If you register your domain with zyscripts.com, it will work on your domain and subdirectories (domain.com/*), but not on subdomains (*.domain.com)
- If you register your subdomain with zyscripts.com, it will work on your subdomain and subdirectories of that subdoomain, but not on the host domain.