Skip to content

PERF: Trimming the scripts.js file  #464

Closed
@designerbrent

Description

@designerbrent

In reviewing the JS used across the system, I want to make sure we absolutely need everything that is getting included. I've summarized below, as best I can tell from the comments inline, what is in the files and the total file size. With the exception of head-scripts.js all the other files get compressed down to scripts.js.

Given all the details below, I'm interested in removing, or separating the following:

  • Moment What is this doing for ALPS? What function does it provide?
  • Modaal Are we using any modal dialog boxes in the system? I know we used them in V2, but I'm not aware of anything in V3 that would warrant keeping an extra 38kb around.

@kelscahill or @davideleuterius: Can you speak to these questions?


head-scripts.js

18KB

modaal.js

38KB
Modaal - accessible modals - v0.2.11
Website

Plugins

107KB

Script.js

17KB
Local scripts that initiate JS specific to the patterns.

  • Classes for Mobile
  • Priority Navigation
  • Sabbath Column icon
  • DropCaps
  • Menu Drawer
  • Slick Carousel

Slick.js

Slick JS Library 1.5.9
40KB

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions