Page MenuHomePhabricator

Separate JavaScript into files for each page
Closed, ResolvedPublic

Description

Page specific scripts should be loaded using a new {% block scripts %} section placed at the end of the <body> in layout.html

Split up main.js into:

main.js

  • Layout view <head> (scripts for all pages)

participate.js

  • Participate view

campaign-form.js

  • Create campaign view
  • Update campaign view

Event Timeline

NavinoEvans triaged this task as Low priority.May 16 2019, 11:43 AM
NavinoEvans created this task.

@Eugene233 does that structure look ok to you for splitting up the JS files?

@Eugene233 does that structure look ok to you for splitting up the JS files?

@NavinoEvans It looks nice.

Change 510807 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[labs/tools/Isa@master] Separate JavaScript into files for each page

https://gerrit.wikimedia.org/r/510807

Change 510807 merged by jenkins-bot:
[labs/tools/Isa@master] Separate JavaScript into files for each page

https://gerrit.wikimedia.org/r/510807

Eugene233 closed this task as Resolved.May 17 2019, 10:55 AM

Marking as resolved.