Skip to Content

FAQs

Make sure domain/staging doesn’t have invalid characters such as underscore, exclamation, etc.

Why plugin doesn’t work?

The plugin will not work properly due to the following reasons:

  • The site uses IHF Eureka template, Eureka is inserting a session_id once the do_shortcode is triggered.
  • The active theme is using ob_start() function outside a add_action/add_filter hooks, this will cause an empty string for ob_start() inside hooks.

Having issue with lazy loading YouTube iframe?

If you are using YouTube iframe API to trigger to play the video you will encounter this issue, you need to manually re-code the script to be able to work with the YouTube iframe API, you can use this as reference JSFiddle.

Lazy load third-party resources with facades

If your not using youtube iframe api to trigger video player you can refer to this markup Lazyframe for YouTube, Google Map, and Vimeo services only.

How to setup WebP on nginx server

The following script will check if webp is supported by the browser and serve it if is available. This also support site with varnish.

shell
location ~* ^/?wp-content/.*\.(png|jpe?g)$ { add_header Vary Accept; expires 365d; if ($http_accept !~* "webp"){ break; } try_files /wp-content/aios-webp/webp-images/doc-root/$uri.webp $uri.webp /wp-content/plugins/aios-optimize/webp/webp-on-demand.php?url-path=$request_filename ; }

How to setup WebP on free Cloudflare account

  • You can configure the CDN not to cache jpeg images by adding the following page rule: If rule matches: example.com/*.jpg, set: Cache level to: Bypass
  • You can set up another CDN (on another provider), which you just use for handling the images. You need to configure that CDN to forward the Accept header. You also need to install a WordPress plugin that points images to that CDN.
  • You can switch operation mode to “CDN friendly” and use HTML altering.

Is converted webp image blurry or pixelated?

The issue occur if the image is already optimize before it converted to webp. You can ask the SRE to disable WebP conversion or re-upload uncompress image.

Last updated on