Skip to content

v0.7.37

Choose a tag to compare

@Etamus Etamus released this 01 May 22:11
· 140 commits to main since this release

Otimizações:

ID Mudança Arquivos Resultado
1 highlight.js lazy index.ts Carrega o pacote apenas ao clicar em "copiar formatado".
2 socket.io-client lazy +layout.svelte Carrega o cliente apenas após o login no setupSocket.
3 Polling de versão svelte.config.js Desativado: pollInterval: 0 (anteriormente era 60000).
4 Cache Imutável _app/immutable/ Configurado max-age=31536000, immutable.
5 Token check +layout.svelte Intervalo alterado de 15s para 60s (4× menos polling).

Ganhos esperados:

  • Boot inicial: –155KB (highlight.js 80KB + socket.io 75KB) → ~200-300ms mais rápido
  • Boot subsequente: quase instantâneo (cache imutável de 1 ano em _app/immutable/)
  • Em idle: zero polling de versão + checagem de token 4× menos frequente → menos CPU/wakelock