Skip to content

Fix CPU usage further #36

@RubenKelevra

Description

@RubenKelevra
(() => {
  const style = document.createElement('style');
  style.id = 'disable-animations-debug';
  style.textContent = `
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
      caret-color: auto !important;
    }
  `;
  document.documentElement.appendChild(style);
  console.log('disabled CSS animations/transitions');
})();

More info:
https://gist.github.com/RubenKelevra/4676f22ff0467513fc75026032745216

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions