perf (lazysizes): remove lazysizes, use native lazy attribute instead#433
Merged
firestar300 merged 2 commits intomasterfrom Jun 3, 2025
Merged
perf (lazysizes): remove lazysizes, use native lazy attribute instead#433firestar300 merged 2 commits intomasterfrom
firestar300 merged 2 commits intomasterfrom
Conversation
Contributor
|
@asadowski10 discuter avec @firestar300 pour compatibilité avec ARI |
Contributor
|
en attente d'un point avec Alexandre sur les changements ARI |
Contributor
Author
7464f7b to
964d17a
Compare
964d17a to
9b89893
Compare
Introduces a new Webpack plugin to automatically generate `image-locations.json` and `image-sizes.json` based on JSON size definitions and TPL templates. This allows for dynamic image size management and srcset generation, improving image optimization and reducing manual configuration. The plugin supports default image generation and format conversion using Sharp.
9b89893 to
4898ab1
Compare
Contributor
Author
Mise à jour de Advanced Responsive Images et
|
| Option | Type | Défaut | Description |
|---|---|---|---|
confImgPath |
string | 'assets/conf-img' |
Chemin vers le dossier de configuration des images |
sizesSubdir |
string | 'sizes' |
Sous-dossier contenant les fichiers JSON de tailles |
tplSubdir |
string | 'tpl' |
Sous-dossier contenant les fichiers templates TPL |
outputImageLocations |
string | 'image-locations.json' |
Nom du fichier de sortie pour les emplacements |
outputImageSizes |
string | 'image-sizes.json' |
Nom du fichier de sortie pour les tailles |
generateDefaultImages |
boolean | false |
Activer la génération d'images par défaut |
defaultImageSource |
string | 'src/img/static/default.jpg' |
Image source pour la génération |
defaultImagesOutputDir |
string | 'dist/images' |
Dossier de sortie des images générées |
defaultImageFormat |
string | 'jpg' |
Format des images générées (jpg, png, webp, avif) |
francoistibo
approved these changes
Jun 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Supprimer les occurrences de lazysizes.
Suite à cet article, il est recommandé d'utiliser les attributs natifs de lazyload en HTML plutôt que d'utiliser une librairie JavaScript.