Skip to content

Refactor Client-Side JavaScript #48

@imaustink

Description

@imaustink

Much of the client JS has become unruly, static.js for example, is a pile of spaghetti heavily spiced with jQuery.

I propose the following changes:

  • Refactor all of /static/static.js.
    • Modularize/Organize into components.
    • Use CanJS instead of jQuery where possible.
    • Consider using Bootstrap's scroll spy plugin.
  • Remove plugins from /static/js
    • Replace with NPM modules
    • Consider rewriting them with CanJS
  • Remove most or all of the JS for responsive stuff. Everything I have seen so far could be done with pure CSS.
  • Write tests for as much of the client code as is reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions