Will Stocks
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWABrilliant – thank you, funny enough I just found it as well π
The only reason I asked is I was going to exclude it from Autoptimize to prevent any conflicts. It’s strange though, because I have already excluded
\wp-content\Super-Progressive-Web-Apps\as a folder… so it shouldn’t be being minified via Autoptimize.I’ll speak to Frank at Autoptimize to get his thoughts π
Thanks for all your help @josevarghese
Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWAFound the source of the issue!!!! CriticalCSS!
Sorry, one final question. Where is this JS stored:
if ('serviceWorker'in navigator) { window.addEventListener('load', function() { navigator.serviceWorker.register(superpwa_sw.url).then(function(registration) { console.log('SuperPWA service worker ready'); registration.update(); }).catch(function(error) { console.log('Registration failed with ' + error); }); }); }As noted above, I have excluded
\wp-content\Super-Progressive-Web-Apps\from Autoptimize, but this still seems to be getting caught some how as I can see in the console:
SuperPWA service worker ready - autoptimize_single_2c986d3e9a58fc60f524c135d382591f.js:1– is there another file/folder I can/should exclude?Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWAOK – plugin has now been deactivated!
Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWANot a problem – Iβll do that shortly and will confirm! π
I hadnβt seen this behaviour prior to activating SPWA, so hopefully itβs a easy fix as the plugin is great!
Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWAI also see some strange navigation “glitches” on the right hand side of the screen – it looks like my home-page sidebar glitches in and then out? On mobile, the screen “swipes” into whatever I’ve clicked and looks good – but in desktop it seems to really freak out!
Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWAI’ve grabbed a screen recording for reference: https://user-images.githubusercontent.com/43744514/49016650-a4ed7980-f17e-11e8-868f-ce93e3c56938.gif
Forum: Plugins
In reply to: [Super Progressive Web Apps] FOUC on navigation around PWAThanks for getting back so quickly @josevarghese
I use Autoptimize for CSS/JS minification on my site. I’ve excluded superpwa-sw.js and the \wp-content\Super-Progressive-Web-Apps\ folder from Autoptimize’s JS minification, the CSS being minified shouldn’t make any difference though surely?
Ah yes – sorry! I get distracted haha.
I think the original issue is now “basically” resolved – Hummingbird holds on to the old gravatars in its page cache, so when I clear that now it appears to update as expected.
Forum: Plugins
In reply to: [Autoptimize] Question: Optimize HTMLHahahaha! I can’t tell if that’s sarcasm or not π
I’m tied between sticking it out with HB or reverting back to WP Super Cache… I just can’t decide!
Forum: Plugins
In reply to: [Autoptimize] Question: Optimize HTMLAhhh, OK brilliant – cheers Frank! Just wanted to clarify, as there was some weird behaviour going on with my caching plugin π It was holding onto “old” gravatar references for some reason.
ON WITH THE INVESTIGATION!
Thanks again πVery good point – very true. Changes would be reflected pretty quickly as well (unless a caching plugin is interfering) as I imagine most people will just leave it at a default of 1 day!
Ooooooh, also a feature request for a future version for you: Is it possible to display the date/time of the last “Gravatar Cache Refresh”? That way, it saves guessing when your gravatars last updated and when you can expect them to next update! That’d be great!
By the way – I checked this morning and my Gravatar was showing the “old” one. Logged in, cleared Hummingbird & Autoptimize and the new one shows! π
I’ll just make sure to keep on top of managing my cache regularly for the time being
Cloudflare is definitely becoming pretty common these days! π
Yes, I believe Hummingbird will only clean the files that it creates. Happy to try and help out where I can!
One question – “Refresh Gravatars every” – Is there a reason that the only option at the moment is “full days” (aka whole integers)? Could there be an “hours” option in the future maybe? If a user has a REALLY active site, they may want Gravatar updates to reflect every 6 – 12 hours?
There are a couple of ways:
1) Hummingbird has a “Cloudflare Integration” which in theory purges the Cloudflare cache when you clear the Hummingbird cache
2) You can put in an API request: https://api.cloudflare.com/#zone-purge-all-files and/or: DELETE https://api.cloudflare.com/client/v4/zones/:identifier/purge_cache
3) You can manually clear the Cloudflare cache via your Cloudflare account control panelI currently utilize the free tier: https://www.cloudflare.com/plans/
Aha! So it took about 5 minutes, but I’m now seeing a “Purge Everything” in my Audit Log with a source of my web server’s IP and against the correct zone – so there’s a little delay there for some reason.
I’ll keep an eye on it over the next couple of days and will get back to you!