soynomm / splendid-speed Goto Github PK
View Code? Open in Web Editor NEWA splendid performance enhancement plugin for WordPress
Home Page: https://wordpress.org/plugins/splendid-speed
License: GNU General Public License v3.0
A splendid performance enhancement plugin for WordPress
Home Page: https://wordpress.org/plugins/splendid-speed
License: GNU General Public License v3.0
Currently deferring is done with priority 10, so it's highly likely some plugins or themes will have scripts also loaded after that, which Splendid Speed then will not catch. Setting this to some impossibly high number would fix that.
This happens because of how instant.page script is minified to use one-letter constants which will naturally clash with other scripts on the page.
Any CSS file that is @import-ed will not work with Inline CSS, because @import needs to precede any other CSS rule. This is breaking some sites I have tested.
A fix that I can think of would be to strip the entire CSS from @imports, and move them to the top.
Much like the Inline CSS module, this would do the exact same, but for scripts.
As an addition to #1 it would be nice to check the theme's CSS files against the ones cached in Splendid Speed for Inline CSS, and if a change is detected then delete the cache. This would allow users to work on their themes with the plugin even in production mode and it would pick up on those changes.
While it's nice to have better metrics, I don't think it's worth giving users yet-another-notification for.
Currently when Imagick is not supported, you can still toggle on and off WebP compression. It just won't do anything. It would be nicer to display a message instead of the toggle switch in such a case to make it clear why it's not doing anything.
Currently when doing development work (like adding new plugins that add CSS or editing the theme's CSS) with some of the features such as caching or inline css turned on, those new changes won't take effect until you turn those features on and off again in Splendid Speed. The problem here is the user probably doesn't even know he needs to do that, so an attempt to help with that I figure a toggle button for development and production mode would be useful.
When toggled to development mode, any feature that uses caching would be silently turned off.
This would help make sure that when the plugin or module is deactivated, we only remove the WebP images that we created. Sometimes the user might have their own WebP images and, currently, those would be deleted as well.
I've recently changed my website address, which needs to be updated in this plugin.
Since the minimum target audience of this plugin starts with PHP7, there's a bunch of cool stuff to add to this plugin to leverage that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.