Skip to content

General Cleanup? #5185

Closed
Closed
@greggman

Description

@greggman

Would you be interested in patches that do general cleanup?

Examples:

remove un-needed attributes

old

   <script type="text/javascript" src="somescript.js"></script> 

new

   <script src="somescript.js"></script> 

Use modern meta tags

old

   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

new

   <meta charset="utf-8">

Remove deprecated css

old

   -webkit-animation: rotation .8s linear infinite;
   -moz-animation: rotation .8s linear infinite;
   -o-animation: rotation .8s linear infinite;
   animation: rotation 0.8s linear infinite;

new

   animation: rotation 0.8s linear infinite;

Use === almost every where

old

      if (type == 0x8B30 /* GL_FRAGMENT_SHADER */) {

new

      if (type === 0x8B30 /* GL_FRAGMENT_SHADER */) {

Use ES6/ES7 features (given things are switching to WASM and all WASM browsers are ES6/7 compatible things like

  • Use const where appropriate
  • Use arrow functions where appropriate

other?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions