Code Monkey home page Code Monkey logo

ecoindex_badge's Issues

Minify JS

Please just minify /js/ecoindex-badge.js

Petits retours

Plus d'explications quand la page n'a pas été testée

Quand la page n'a pas été testée, le badge affiche un ?, ce serait bien d'expliquer ce que cela signifie au roll over ou au touch ou même remplacer ce ? par un message explicite.

Refresh

J'ai mon badge sur une page en ?, je lance le test. Quand il est terminé, je refresh ma page, le badge est toujours en ? c'est normal ou c'est un bug dans mon implémentation (https://github.com/NovaGaia/gatsby-plugin-ecoindexbadge-v2)

data-theme

Mon framework css (DaisyUI/Tailwindcss) utilise déjà data-theme, ça entre donc en conflit et mets un background au bouton. Peut-être qu'un data-* moins générique serait meilleur 🤷‍♂️

Obligation d'avoir un trailing slash

Context
Sur un WordPress hébergé par Infomaniak, je n'ai pas la main sur la conf. serveur. La conf. est possible dans WordPress pour forcer l'ajout du trailing slash, mais pas par défaut et pas à la porté de "Madame et monsieur tout le monde".

Le javascript ne détecte pas ce manque, donc envoie domain.td et non pas domain.td/ hors l'API nécessite visiblement ce trailing slash. Il faut homogénéiser et sécuriser les conf sans ce trailing slash

  • Soit ne pas le rendre obligatoire sur l'API
  • Soit agir pour que le javascript le détecte et l'ajoute si besoin.

Use local storage to limit server calls

Each time a user refreshes a page where the logo is embedded with JavaScript, the API is called. This behavior will consume bandwidth and might create performance issues on both sides (website and API).

It should be possible to use local storage to avoid this.

Donner une width et une height à l'image

Alert PageSpeed Insight

Performances : Les éléments d'image ne possèdent pas de width ni de height explicites

image

Bonnes pratiques : Images diffusées en basse résolution

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.