ProjectEvergreen/greenwood

<script> tags using optimization attributes have a space before the closing bracket of the opening tag

Aberta

#1.052 aberto em 5 de fev. de 2023

 (1 comentário) (0 reação) (0 responsável)JavaScript (15 forks)auto 404
CLIenhancementgood first issue

Métricas do repositório

Stars
 (132 estrelas)
Métricas de merge de PR
 (Mesclagem média 25d 20h) (29 fundiu PRs em 30d)

Description

Type of Change

Enhancement / Bug / Other

Summary

If you notice in the source of the Greenwood website, the Apollo data and the webcomponents loader have a space before the closing bracket ( >) of the opening tag.

<script data-state="apollo" >
  window.__APOLLO_STATE__ = true;
</script>

  <!-- ... -->

  <script >
    /* ... */
  </script>

Details

It seems related to how these optimization attributes are being removed from the HTML during the optimization step as both of these leverage those custom attributes.

Probably good to make sure this isn't happening for <link> tags too.


Not a big deal but something worth looking into.

Guia do colaborador