Tags: pagespeed insights, optimization, page speed, optimisation, speed, performance, load time, loadtime, images, css, webp, async, asynchronous, gtmetrix
Requires at least: 6.2
Requires PHP: 7.3
Stable tag: 3.6
Tested up to: 6.7
License: AGPL-3.0
Contributors: apeschar
PhastPress automatically optimizes your site for the best possible performance.
PhastPress uses advanced techniques to manipulate your pages, scripts, stylesheets and images to significantly improve load times. It's designed to conform to Google PageSpeed Insights and GTmetrix recommendations and can improve your site's score dramatically.
PhastPress' motto is no configuration. Install, activate and go!
PhastPress has the Phast web page optimisation engine by Albert Peschar and Milko Kosturkov at its core.
Image optimization:
- Phast optimizes images using PNG quantization (pngquant) and JPEG recoding (libjpeg-turbo).
- Phast inlines small images (< 512 bytes) in the page.
- Phast converts JPEG images into WebP for supporting browsers.
- Phast enables native lazy loading to speed up page loading and save bandwidth.
Asynchronous scripts and stylesheets:
- Phast loads all scripts on your page asynchronously and in a single request, while maintaining full compatibility with legacy scripts, due to our custom script loader.
- Phast proxies external scripts to extend their cache lifetime.
- Phast inlines critical CSS automatically by comparing the rules in your stylesheets with the elements on your page.
- Phast loads non-critical CSS asynchronously and in a single request.
- Phast inlines Google Fonts CSS.
- Phast lazily loads IFrames to prioritize the main page load.
Get the full power of Phast for your website by installing PhastPress now.
For commercial support and bug reports, click here.
- Upload the PhastPress plugin to your site and activate it.
- Make sure that PhastPress is activated on the Settings page.
- Test your site. If you experience any issues, you may request commercial support.
No. You do not need any other plugins, such as image optimization (e.g., Smush) or file minification (e.g., Autoptimize) after you install PhastPress, because PhastPress includes all necessary optimizations.
I recommend using the simple combination of PhastPress and WP Super Cache only. This reduces the potential for plugin conflicts, and it is really all you need.
Fast Velocity Minify is not compatible with PhastPress, and causes PhastPress not to work. Please use either plugin, but not both.
Caching means saving the HTML from the first visit to a page for later visits, so it does not have to be generated each time. Caching also helps performance with PhastPress, because the page needs to be optimized only once. It is recommendable to use a caching plugin with PhastPress.
PhastPress is not a caching plugin. I recommend using WP Super Cache in combination with PhastPress to speed up your server response time (TTFB).
In case you are using another caching plugin, please read the notes below:
WP Fastest Cache: Compatible with PhastPress, but non-caching optimizations must be disabled. Turn off the WP Fastest Cache options in this screenshot.
W3 Total Cache: Compatible with PhastPress, but non-caching optimizations must be disabled. Specifically, the Prevent caching of objects after settings change option causes problems.
Cache Enabler (by KeyCDN): Not compatible with PhastPress. Cached pages will not be optimized.
Generally, PhastPress should be compatible with other caching plugins as well. Some caching plugins include optimizations of JavaScript, CSS and/or images. I recommend turning off all optimizations to avoid conflicts with PhastPress.
Yes. The core functionality of Asset CleanUp: Page Speed Booster complements PhastPress by removing unused JavaScript and CSS from the page.
Do not use Asset CleanUp's features for optimizing CSS and JS. These features can cause conflicts with PhastPress, and they are not needed, because PhastPress already does this.
You might be using a plugin that compresses the page before PhastPress processes it. When that happens, PhastPress cannot apply optimizations.
For example, if you are using the Far Future Expiry Header plugin, disable the option "Enable Gzip Compression".
The "Fully Loaded Time" in GTmetrix is the amount of time taken until all network activity ceases. This measurement can be misleading because it does not take into account the order in which resources load.
Normally, external resources such as scripts and stylesheets must be downloaded, parsed and executed before the page can be rendered. PhastPress changes this sequence by including all necessary resources (that is, the critical CSS) in the page, and executing scripts asynchronously, so that they do not block the rendering of the page.
This causes the page to be visible earlier in the browser, but does not change GTmetrix's fully loaded time.
In order to see this effect, register and log in to GTmetrix and enable the "Video" option. Then test your site (with Phast enabled), and use the "Compare" button to again test your site, but while appending "?phast=-phast" to the URL (eg, https://example.com/?phast=-phast). When the comparison loads, select the "Filmstrips" tab and you'll see the difference. The Phast-optimized version of your site should start rendering much earlier.
Should you need to disable PhastPress on certain pages, you can use the following code to do so:
add_filter('phastpress_disable', '__return_true');
Make sure that this code runs during template_redirect
or earlier.
Add this code to your theme's functions.php, or to a new file in wp-content/mu-plugins:
add_filter('phastpress_disable', function ($disable) {
return $disable || is_cart() || is_checkout();
});
PhastPress uses filesize and modification time information to detect file changes, so clearing the cache is generally not needed. When you change a script or CSS file, the change should be visible immediately after reloading.
If you do want to clear the cache, you can delete all the data inside wp-content/cache/phastpress
or wp-content/plugins/phastpress/cache
.
By default, PhastPress delays the load of all scripts until after the DOM has finished loading, so that the browser can render the page as quickly as possible. If you wish to load specific scripts as soon as possible, such as Google Analytics, you may add the data-phast-no-defer
attribute to the script. It would be preferable to also mark external scripts as async
, when possible.
For example:
<script data-phast-no-defer>
// my script goes here
</script>
Or:
<script async data-phast-no-defer src="http://url.to.my.script/"></script>
If you (or a plugin) are using wp_enqueue_script
to add the script to the page, you can use the phast_no_defer
data key to stop PhastPress from processing the script:
wp_script_add_data('my_script_name', 'phast_no_defer', true);
Make sure this is run after registering the script. If you are trying to apply this to a script loaded by a plugin, you could use the wp_print_scripts
hook:
add_action('wp_print_scripts', function () {
wp_script_add_data('my_script_name', 'phast_no_defer', true);
});
If you use the HTML source code to find the script name, note that -js
and -js-extra
are not part of the name. For example, for a script like <script id="jquery-core-js">
in the source code, the script name is jquery-core
, and that is what you should pass to wp_script_add_data
.
This is applied automatically for these scripts:
- Google Analytics script inserted by Monsterinsights since PhastPress 1.29.
- Tracking script inserted by Slimstat Analytics since PhastPress 1.30.
- Google Analytics script inserted by Google Site Kit since PhastPress 1.75.
- Google Analytics script inserted by GA Google Analytics since PhastPress 1.76.
Images are optimized using a free API, provided by the creator of PhastPress.
During image optimization, the following data is sent to the API:
- the URL on which PhastPress is used
- the version of the plugin
- the PHP version (to track compatibility requirements)
- the image itself
Images are sent to the API only once. Processed images are stored locally, and not retained by the API.
If image optimization is switched off, the API will not be used.
Your theme or a plugin is trying to send HTTP headers after the page has started rendering and bytes have been sent to the browser. This is wrong, but it works when PHP output buffering is enabled.
PhastPress always sends output as soon as possible, to reduce the time to first byte. That means this problem cannot be fixed without slowing down sites without buggy themes/plugins.
To fix the problem on your site, the following code needs to be run in order to enable output buffering:
<?php add_action('template_redirect', function () { ob_start(); });
You can add this code to your theme's functions.php
, or create a file output-buffer.php
in wp-content/mu-plugins
with the above code. You may have to create this directory first.
Alternatively, download output-buffer.zip
and extract the contents into your web folder. You should end up with a file named output-buffer.php
in wp-content/mu-plugins
.
Yes. Add these two lines to your .htaccess
file:
RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^wp-content/.*[^/]\.(jpe?g|gif|png)$ wp-content/plugins/phastpress/phast.php [L,NC,E=PHAST_SERVICE:images]
Then in PhastPress settings, disable image optimization in tags and CSS.
Now, reload your site and check if images are optimized.
Yes, as long as you use a CSP with a script-src
policy containing nonce-*
. To enable Phast's support for CSP implement the phastpress_csp_nonce
filter:
<?php add_filter('phastpress_csp_nonce', function () { return 'my-nonce'; });
Cloudflare does not support Vary: Accept
, so sending WebP via Cloudflare can cause browsers that don't support WebP to download the wrong image type. You can try using Cloudflare Polish instead.
- Bump "Tested up to" to WordPress 6.7.
- Support Bedrock. (Thanks to @SandiyosDev!)
- Bump "Tested up to" to WordPress 6.6.
- Bump "Tested up to" to WordPress 6.5.
- Do not check SQLite version and do not require support for
WITHOUT ROWID
.
Updated Phast to version 1.110 to support versions of SQLite without WITHOUT ROWID
support.
- Check that SQLite is version 3.8.2 or newer.
- Moved from deprecated
\Requests
to\WpOrg\Requests\Requests
class. - PhastPress now requires WordPress 6.2.
- Bump "Tested up to" to WordPress 6.4.
- Bump "Tested up to" to WordPress 6.3.
- In resource optimization service, stop
wp-load.php
as soon asWPINC
is defined.
- Fix deprecation warnings in the control panel.
- Fix installation notice on dashboard.
Update Phast to version 1.109:
- Fix deprecation warnings.
Update Phast to version 1.108:
- Fix deprecation warnings.
- Fix fatal error on
phastpress_disable
if unconfigured.
Update Phast to version 1.107:
- Prevent duplication of self-closing
<meta charset>
tags.
- Fix WordPress 6.2 compatibility.
- Bump "Tested up to" to WordPress 6.2.
Update Phast to version 1.106:
- Set
Content-Type: application/json
header on bundler responses. - Remove
X-Robots-Tag
header.
- Prevent undefined array index warning.
- Don't defer Burst Statistics scripts.
- Bump "Tested up to" to WordPress 6.1.
Update Phast to version 1.105:
- Set
X-Robots-Tag: none
header on bundler responses to prevent search engines from indexing them.
- Bump "Tested up to" to WordPress 6.0.2.
- Add
nonce
attributes toscript
tags generated by PhastPress itself.
PhastPress now requires WordPress 5.7 or later.
- Add
phastpress_csp_nonce
filter.
- Clarity PDO_SQLITE requirement message.
Update Phast to version 1.104:
- Improve CSP support.
- Use SQLite3 database for caching instead of a file tree.
Update Phast to version 1.103:
- Update CA bundle.
- Require PHP 7.3.
Update Phast to version 1.102:
- Don't rewrite the URLs of dynamically inserted
module
scripts. This fixes compatibility with Presto Player.
Update Phast to version 1.101:
- Ensure the security token never gets reset when the cache grows too large. This prevents resource URLs from changing suddenly.
- Prevent dark flash when OS dark mode is active but theme dark mode is disabled.
- Add missing file; simplify logic; improve log message.
- Prevent light flash when using the dark mode in the Twenty Twenty One theme, even when the page is large enough to trigger multiple renders.
This release misses a file. Please use 1.123 instead.
- Prevent light flash when using the dark mode in the Twenty Twenty One theme.
Update Phast to version 1.100:
- Send 403 and 404 status codes for unauthorized and not found resource URLs respectively, if they cannot be safely redirected to the original resource.
- Fix notice on undefined cspNonce variable.
- Avoid an issue with the Stop Spammers plugin preventing the install notice from being closed.
Update Phast to version 1.99:
- Prefix
async
,defer
attributes withdata-phast-
to please W3C validator.
- Update settings labels about IFrame lazy loading.
Update Phast to version 1.98:
- Deterministically generate security key based on WordPress secret keys. This avoids URLs changing when the cache is emptied.
- Bump WordPress compatibility to 5.7.
Update Phast to version 1.97:
- Fix open redirect on
phast.php
. This would allow a malicious person to redirect someone to a third-party site viaphast.php
by sending them a link. This can enable phishing attacks if the user is mislead by the hostname of the initial URL. It does not compromise the security of your site itself.
Update Phast to version 1.96:
- Don't emulate
document.currentScript
for scripts that are executed normally. This prevents some scripts from seeing the wrongcurrentScript
accidentally.
Update Phast to version 1.95:
- Do not rewrite
<img>
elementsrc
when it has arev-slidebg
class and points totransparent.png
. This is because Revolution Slider's JavaScript depends on the image filename for its logic.
- Optimize AJAX responses generated by the quick view functionality in Flatsome theme.
- Optimize AJAX responses generated by YITH WooCommerce Quick View Pro.
Update Phast to version 1.94 to support this improvement.
- Optimize AJAX responses generated by YITH WooCommerce Quick View.
Update Phast to version 1.93:
- Don't optimize snippets if they look like JSON objects, ie, start with
{"
.
Update Phast to version 1.92:
- Support whitespace in
url()
in CSS. Eg,url( 'file.jpg' )
is not processed correctly.
Update Phast to version 1.91:
- Make message about inability to override
document.readyState
a warning rather than an error, to avoid spurious complaints from PageSpeed Insights.
Update Phast to version 1.90:
- Correctly support additional arguments when using setTimeout. This fixes a regression in version 1.83.
- Add
phastpress_optimize_snippet
function to allow arbitrary HTML to be optimized.
Update Phast to version 1.89:
- Ensure error pages are always interpreted as UTF-8.
Update Phast to version 1.88:
- Simplify
PATH_INFO
calculation if the environment variable is missing. This is now determined by splitting the path component ofREQUEST_URI
on.php/
. - Improve error messages, hopefully aiding troubleshooting when
phast.php
isn't doing it's job.
- Handle multisite installations in subdirectories.
Update Phast to version 1.87:
- Fix handling of closing parenthesis and string literal separated by newline in JSMin.
- Disable PhastPress while editing with Oxygen Builder.
Update Phast to version 1.86:
- Use
text/plain
MIME type for the bundled CSS and JS responses. This helps apply automatic response compression in some server configurations (specifically o2switch).
Update Phast to version 1.85:
- Raise maximum page size to 2 MiB.
- Add compatibility for LiteSpeed Cache. PhastPress optimizations would not work before this.
Update Phast to version 1.84:
- Detect WOFF2 support using a feature test, instead of relying on the user agent. This fixes Google Fonts on iOS 9 and earlier.
Update Phast to version 1.83:
- Make sure setTimeout chains in DOMContentLoaded are completely executed before the load event is triggered. This fixes some uses of jQuery's ready event.
Update Phast to version 1.81:
- Use Base64-based path info for server-generated URLs.
Update Phast to version 1.80:
- Encode characters that cannot occur in URLs. This fixes canonical URLs for optimized images if those URLs contained special characters.
- Delay NextGEN Gallery resource manager output buffer hook until after PhastPress deployment if WP Super Cache late init is enabled. This fixes an issue where footer scripts would disappear when NextGEN Gallery and WP Super Cache late init were used at the same time.
- Delay deployment until
init
hook if WP Super Cache late init is enabled. This fixes PhastPress optimizations being done on every load in WP Super Cache's Simple mode, and not being done at all in Expert mode.
Update Phast to version 1.79:
- Support
document.currentScript
in optimized scripts. (This fixed compatibility with PDF Embedder.) - Prevent (suppressed) notice from
ob_end_clean
.
Update Phast to version 1.78:
- Handle
<!doctype html ...>
declarations correctly, and don't insert<meta charset>
before them. (This broke pages using old XHTML doctypes.)
- Disable PhastPress when editing with WPBakery.
Update Phast to version 1.77:
- Insert
<meta charset=utf-8>
tag right after<head>
and remove existing<meta charset>
tags. This fixes an issue where the<meta charset>
tag appears more than 512 bytes into the document, causing encoding issues.
Update Phast to version 1.76:
- Stop proxying external scripts like Google Analytics. This feature had no performance benefit, and its only purpose was to improve scores in old versions of PageSpeed Insights.
Update Phast to version 1.75:
- Insert path separators (
/
) into bundler URLs in order to avoid Apache's 255 character filename limit.
Update Phast to version 1.74:
- Ignore calls to
document.write
fromasync
ordefer
scripts, in line with normal browser behaviour.
- Apply
phast_no_defer
script attribute to scripts generated bywp_localize_script
.
- Prevent direct access to
bootstrap.php
,low-php-version.php
and files inclasses
directory. This is not a security risk, but could generate errors.
- Don't defer AdThrive Ads scripts.
- Don't resize images based on
width
/height
attributes onimg
tags.
- Exclude cache from All-in-One WP Migration backups.
Update Phast to version 1.71.
- Only process JPEG, GIF and PNG images. (Fix regression in 1.65.)
- Don't defer GA Google Analytics scripts.
- Don't defer Google Site Kit Analytics script.
- Add support for phast_no_defer script attribute.
Update Phast to version 1.70.
- Add Last-Modified header to service response.
- Don't use error suppression when checking query parameters, instead use isset. This prevents notices from appearing in some error logging plugins, even though they are suppressed.
Update Phast to version 1.69.
- Fix CSS proxy URL generation not to include
__p__
filename twice.
Update Phast to version 1.68.
- Support URLs generated via Retina.js (when path info is enabled).
Update Phast to version 1.67.
- Fix IE 11 stylesheet fallbacks.
Update Phast to version 1.66.
- Convert
<link onload="media='all'">
to<link media="all">
before inlining. - Elide
media
attribute on generatedstyle
tags if it isall
.
Update Phast to version 1.65.
- Use path info URLs for bundler and dynamically inserted scripts.
- Don't whitelist local URLs but check that the referenced files exist.
- Support BunnyCDN by optimizing resources on the CDN domain and loading processed resources via the CDN domain.
Update Phast to version 1.64.
- Preserve control characters in strings in minified JavaScript.
- Use JSON_INVALID_UTF8_IGNORE on PHP 7.2+ instead of regexp-based invalid UTF-8 character removal.
Update Phast to version 1.63.
- Images in AMP documents are now optimized. No other optimizations are performed in AMP documents.
Update Phast to version 1.62.
- Add an option to lazy load images using native lazy loading (
loading=lazy
attribute). This is enabled by default.
Update Phast to version 1.61.
- Added an option to disable gzip compression of processed resources downloaded via
phast.php
. This might help to fix issues on hosts that compress already compressed responses.
Update Phast to version 1.60:
- Ensure that requestAnimationFrame callbacks run before onload event.
- Don't rewrite anchor URLs (like
#whatever
) in CSS.
Update Phast to version 1.58:
- Rewrite each URL in a CSS rule, not just the first one.
- Disable PhastPress during Asset Cleanup: Page Speed Booster analysis.
Update Phast to version 1.55:
- Only rewrite image URLs in arbitrary attributes inside the
<body>
tag. - Don't optimize image URLs in attributes of
<meta>
tags. - When optimizing images, send the local PHP version to the API, to investigate whether PHP 5.6 support can be phased out.
Update Phast to version 1.54:
- Fix writing existing read-only cache files (on Windows).
Update Phast to version 1.53:
- Fix caching on Windows by not setting read-only permissions on cache files.
- Add a checksum to cache files to prevent accidental modifications causing trouble.
Update Phast to version 1.51:
- Rewrite image URLs in any attribute, as long as the URL points to a local file and ends with an image extension.
Update Phast to version 1.50:
- Ignore
link
elements with emptyhref
, or one that consists only of slashes. - Replace
</style
inside inlined stylesheets with</ style
to prevent stylesheet content ending up inside the DOM. - Add
font-swap: block
for Ionicons. - Remove UTF-8 byte order mark from inlined stylesheets.
- Fix release.
- Improve compatibility with Nimble Page Builder and Child Theme Configurator.
Update Phast to version 1.49:
- Send uncompressed responses to Cloudflare. Cloudflare will handle compression.
Update Phast to version 1.48:
- Stop excessive error messages when IndexedDB is unavailable.
Update Phast to version 1.47:
- Process image URLs in
data-src
,data-srcset
,data-wood-src
anddata-wood-srcset
attributes onimg
tags.
This release should have updated Phast to version 1.47, but didn't, by accident.
Update Phast to version 1.46:
- Whitelist
cdnjs.cloudflare.com
for CSS processing.
Update Phast to version 1.45:
- Use
font-display: block
for icon fonts (currently Font Awesome, GeneratePress and Dashicons).
Update Phast to version 1.44:
- Support
data-pagespeed-no-defer
anddata-cfasync="false"
attributes on scripts for disabling script deferral (in addition todata-phast-no-defer
). - Leave
data-{phast,pagespeed}-no-defer
anddata-cfasync
attributes in place to aid debugging.
Update Phast to version 1.43:
- Base64 encode the config JSON passed to the frontend, to stop Gtranslate or other tools from mangling the service URL that is contained in it.
Update Phast to version 1.42:
- Speed up script load, and fix a bug with setTimeout functions running before the next script is loaded.
Update Phast to version 1.41:
- Support compressed external resources (ie, proxied styles and scripts).
- Image optimization functionality works again. You will have to re-enable it in the settings panel.
Update Phast to version 1.40:
- Add s.pinimg.com, google-analytics.com/gtm/js to script proxy whitelist.
Update Phast to version 1.39:
- Remove blob script only after load. This fixes issues with scripts sometimes not running in Safari.
Update Phast to version 1.38:
- Fixed a regression causing external scripts to be executed out of order.
Update Phast to version 1.37:
- Execute scripts by inserting a
<script>
tag with a blob URL, instead of using global eval, so that global variables defined in strict-mode scripts are globally visible.
Update Phast to version 1.36:
- Clean any existing output buffer, instead of flushing it, before starting Phast output buffer.
Update Phast to version 1.35:
- Use all service parameters for hash-based cache marker. This might fix some issues with stale stylesheets being used.
- The
phastpress_disable
hook is now triggered duringtemplate_redirect
instead ofplugins_loaded
, which allows you to use many more functions in your hook handlers.
Update Phast to version 1.34.
Update Phast to version 1.33:
- Stop proxying dynamically inserted scripts after onload hits.
- Combine the hash-based cache marker with the original modification time-based cache marker.
- Remove comment tags (
<!-- ... -->
) from inline scripts. - Send
Content-Length
header for images.
Update Phast to version 1.31:
- Change CSS cache marker when dependencies (eg, images) change. This prevents showing old images because CSS referencing an old optimized version is cached.
- Store service config in
service-config-*
files for AppArmor compatibility, if there's a rule that prevents writing*.php
files. - Create index.html in cache directory to prevent path enumeration.
Update Phast to version 1.29:
- Trick mod_security into accepting script proxy requests by replacing
src=http://...
withsrc=hxxp://...
.
Update Phast to version 1.28:
- Don't send WebP images via Cloudflare. Cloudflare does not support
Vary: Accept
, so sending WebP via Cloudflare can cause browsers that don't support WebP to download the wrong image type. Use Cloudflare Polish instead.
Update Phast to version 1.26:
- Keep
id
attributes onstyle
elements. (This fixes compatibility with css-element-queries.)
- Don't delay SlimStats script.
- Don't delay Monsterinsights script so that Google Analytics works more reliably.
Update Phast to version 1.25:
- Keep newlines when minifying HTML.
Update Phast to version 1.24:
- Send Content-Security-Policy and X-Content-Type-Options headers on resources to speculatively prevent any XSS attacks via MIME sniffing.
- Load configuration via
wp-load.php
instead ofwp-config.php
.
- Fix incompatibility with Thrive Architect.
- Test with WordPress 5.3.
- Fix incompatibility with Divi Visual Builder.
Update Phast to version 1.23:
- Make CSS filters configurable using switches.
- Disable optimizations inside Yellow Pencil editor.
- Mitigate restrictive access rules for /wp-content by adding our own .htaccess for phast.php.
- Try to put cache directory in wp-content/cache or wp-content/uploads before using the plugin directory.
Update Phast to version 1.22:
- Remove empty media queries from optimize CSS.
- Use token to refer to bundled resources, to shorten URL length.
- Clean up server-side statistics.
- Add HTML minification (whitespace removal).
- Add inline JavaScript and JSON minification (whitespace removal).
- Add a build system to generate a single PHP file with minified scripts.
Update Phast to version 1.21:
- Don't attempt to optimize CSS selectors containing parentheses, avoiding a bug removing applicable :not(.class) selectors.
- Fix compatibility issues by not prepending our autoloader.
Update Phast to version 1.20:
- Add *.typekit.net, stackpath.bootstrapcdn.com to CSS whitelist.
- Don't apply rot13 on url-encoded characters.
- Use valid value for script
type
to quiet W3C validator.
Update Phast to version 1.18:
- Don't rewrite page-relative fragment image URLs like
fill: url(#destination)
.
Update Phast to version 1.17:
- Restore
script
attributes in sorted order (that is,src
beforetype
) to stop Internet Explorer from running scripts twice when they havesrc
andtype
set.
- Add
phastpress_disable
hook.
- Fix an issue whereby updating to 1.14 would reset the security token, invalidating links used in pages in a full-page cache. (To fix the issue, clear the cache of your full-page caching plugin.)
- Use the correct service URL when the site URL changes after activation.
Update Phast to version 1.16:
- Encode bundler request query to avoid triggering adblockers.
- Use a promise to delay bundler requests until the end of the event loop, rather than setTimeout.
Update Phast to version 1.15:
- Scripts can now be loaded via
document.write
. This restores normal browser behaviour.
Update Phast to version 1.14:
document.write
now immediately inserts the HTML into the page. This fixes compatibility with Google AdSense.
Update Phast to version 1.13.1:
- Remove query strings from URLs to stylesheets and scripts loaded from the local server. It is redundant, since we add the modification time to the URL ourselves.
- Add version information to console log.
- Fix notice regarding undefined variable in settings panel.
Update Phast to version 1.12.2:
- Increase timeouts for API connection.
Update Phast to version 1.12.1:
- Don't use IndexedDB-backed cache on Safari.
- Use HTTPS for the API connection.
Update Phast to version 1.12.0:
- Rewrite
data-lazy-src
anddata-lazy-srcset
onimg
,source
tags for compatibility with lazy loading via BJ Lazy Load, possibly other plugins.
- Removed script rearrangement setting.
Update Phast to version 1.11.0:
- Proxy CSS for maxcdn.bootstrapcdn.com, idangero.us, *.github.io.
- Proxy icon fonts and other resources from fonts.googleapis.com.
- Improve log messages from image filter.
- Do not proxy maps.googleapis.com, to fix NotLoadingAPIFromGoogleMapError.
- Removed
src
attribute from scripts that are loaded through the bundler, so that old versions of Firefox do not make extraneous downloads. - Check that the bundler returns the right amount of responses.
- Per-script debugging message when executing scripts.
- Animated GIFs are no longer processed, so that animation is preserved.
- Disable PhastPress for Elementor previews (edit mode).
- Fix installation notice dismissal.
Update Phast to version 1.9.3:
<!--
comments in inline scripts are removed only at the beginning.
Update Phast to version 1.9.2:
- Empty scripts are cached correctly.
Update Phast to version 1.9.1:
- Async scripts are now not loaded before sync scripts that occur earlier in the document.
Update Phast to version 1.9.0:
- Scripts are now retrieved in a single request.
- Non-existent filter classes are ignored, and an error is logged.
- A 'dummy filename' such as
__p__.js
is appended to service requests to trick Cloudflare into caching those responses. - The maximum document size for filters to be applied was corrected to be 1 MiB, not 1 GiB
This release was built with a pre-release version of Phast 1.9.0 that caused incorrect triggering of the browser load
event. Please upgrade to PhastPress 1.8.1.
- Update Phast to version 1.8.0.
- Do not regenerate the service request token on every configuration change or plugin update.
- Fix issue with CSS not respecting disabled path info setting.
- Update Phast to commit 9e1471a.
- Fix MyParcel (and possibly other plugins) compatibility by not optimizing any pages but WordPress' index.php.
- Revamped the settings panel.
- Remove old notice about sending admin email.
- The admin email is no longer sent to the image optimisation API.
- Update to Phast 1.5.1.
- Disable scripts rearrangement by default.
This version was based on Phast 1.5.0.
- Add automatically configured option to use query strings rather than path info for service requests.
- Automatically enable PhastPress if everything seems fine.
- Use WordPress' Requests library instead of cURL.
- PhastPress is now automatically enabled on installation.
- The image optimisation API is now automatically enabled on installation.
- PhastPress now works on Windows.