lisadev
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] Load JS in Head to avoid flash of hidden content?Hi Ben, yes you were right that using the Cloudflare detection doesn’t resolve this issue.
I did a little more investigation with how other systems manage this issue. Many use a skeleton loader like this https://tailwindcss.com/docs/animation#pulse to show that the content is loading. (If you somehow don’t land on the correct one, scroll to the “Pulse” animation.) Is there a “loading” class that gets added to the body until the correct content loads? I didn’t observe one, but just wanted to check. It would be nice if the plugin did what the Tailwind pulse does, however if it has a loading class, I could probably build out the JavaScript to do something similar.
Forum: Plugins
In reply to: [Geolocation IP Detection] Load JS in Head to avoid flash of hidden content?On further evaluation, it looks like this plugin works with Cloudflare geolocation. We actually have Cloudflare geolocation enabled. Would that allow us to add geolocation body classes server side?
I wasn’t able to find any documentation about how the plugin works with Cloudflare. Does any exist? If so, can you please provide the link? Thanks!
Forum: Plugins
In reply to: [Geolocation IP Detection] Load JS in Head to avoid flash of hidden content?Thanks for your reply. I duplicated the page and tried with the shortcodes. The flash looks the same with both methods (very noticeable).
Do I need to exclude another script from WP Meteor when I use the shortcodes? These are the scripts I have excluded:
- js/dist/frontend.js
- inline script with ID “geoip-detect-js-js-extra”