Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading time optimization + SEO hints #700

Closed
wants to merge 6 commits into from

Conversation

navidemad
Copy link
Collaborator

D'abord j'ai corrigé quelques astuces que l'outil SEO lighthouse de google chrome me proposait, comme des attributs nofollow, des problèmes de contrastes de couleurs, définir des tailles d'images.

Ensuite, j'ai cherché à optimiser le chargement de la font-face Poppins qu'on a en interne en regardant l'article :
https://sia.codes/posts/making-google-fonts-faster/

Ensuite, j'ai voulu améliorer les images de la homepage avec une version webp mais quelques soit les paramètres que je passais ou l'outil que j'utilisais le texte n'est plus aussi net qu'avec une version png donc je trouvais pas ça intéressant.

Ensuite, j'ai passé le fontawesome qu'on chargait via une gem, par le biais de webpacker comme le conseille leur documentation tout en chargant uniquement les icones que l'on utilise sur le site :
https://fontawesome.com/how-to-use/javascript-api/setup/importing-icons
On pourra à l'avenir peut-être passé sur une version pro qui nous ferait switchait sur leur version 6 apparament plus performante et beaucoup plus complète en terme de catalogue d'icone.
https://fontawesome.com/plans

La gem react-rails apparament utilise un event listener 'unload' qui provoque une perte de quelques point de best-praticce sur l'outil de google:

The unload event does not fire reliably and listening for it can prevent browser optimizations like the Back-Forward Cache. Consider using the pagehide or visibilitychange events instead. Learn more

Enjoy

@navidemad navidemad linked an issue May 1, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented May 1, 2021

Codecov Report

Merging #700 (e38c3bd) into master (fb407b2) will not change coverage.
The diff coverage is n/a.

❗ Current head e38c3bd differs from pull request most recent head a02f8b0. Consider uploading reports for the commit a02f8b0 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #700   +/-   ##
=======================================
  Coverage   52.34%   52.34%           
=======================================
  Files          77       77           
  Lines        1792     1792           
=======================================
  Hits          938      938           
  Misses        854      854           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb407b2...a02f8b0. Read the comment docs.

@navidemad navidemad force-pushed the navidemad/seo-optimization branch from 1404c6b to a02f8b0 Compare May 5, 2021 15:24
@sonarcloud
Copy link

sonarcloud bot commented May 5, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mathieuripert mathieuripert added this to Plateforme / Infrastructure in Roadmap May 17, 2021
@mathieuripert mathieuripert removed this from Plateforme / Sécurité in Roadmap May 17, 2021
@mathieuripert mathieuripert added this to Plateforme / Sécurité in Roadmap May 17, 2021
@navidemad
Copy link
Collaborator Author

Je la ferme, refaite dans une autre PR #812

@navidemad navidemad closed this May 19, 2021
@carsso carsso deleted the navidemad/seo-optimization branch July 5, 2021 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Roadmap
Plateforme / Sécurité
Development

Successfully merging this pull request may close these issues.

Optimisation du pagespeed / SEO
1 participant