Now you can use webp module with preload technic.
add check to load webp image if exist in image files

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 3229962-supports-webp-module Comparecompare
  • 1 hidden branch
  • 2.0.x Comparecompare

Comments

Ahmad Smhan created an issue. See original summary.

ahmad smhan’s picture

StatusFileSize
new1.16 KB
ahmad smhan’s picture

StatusFileSize
new1.62 KB
luke.leber’s picture

I think this is a very worthwhile issue to tackle, however it seems that it may still need some work.

Can you provide the responsive image style configuration that works with your patch? I just tried applying it and preloads broke down on my test site (was missing the ?itok part which was causing the asset to be downloaded twice).

Thanks!

luke.leber’s picture

StatusFileSize
new1.85 KB

Do you think that this might work? This way that itok is preserved.

luke.leber’s picture

Status: Active » Needs review
luke.leber’s picture

Status: Needs review » Fixed

This should be resolved with https://www.drupal.org/project/responsive_image_preload/issues/3232744

I've credited @Ahmad Smhan in #3232744. Thanks!

ahmad smhan’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nicodh’s picture

Version: 1.0.x-dev » 2.0.x-dev

This issue doesn't seem to be resolved.

nicodh changed the visibility of the branch 2.0.x to hidden.

nicodh’s picture

I update issue fork, plain diff patch attached.

nicodh’s picture

With webp preload tag first

nicodh’s picture

Without jpg/png preload if webp is present