Skip to content

Ease adding scripts that depend on jQuery #2110

Closed
@mjpieters

Description

@mjpieters

It's currently very cumbersome to add scripts to the theme that must load in the footer to benefit from the jQuery support already present. Either we must

  • list main.min.js and https://use.fontawesome.com/releases/v5.7.1/js/all.js (but without the defer, integrity and crossorigin options), or
  • customise the scripts.html include, or
  • copy across all JS assets, download the package.json and banner.js files from GitHub (using the right versions) to be able to build the asset locally.

Yet all I want to do is load one extra, small JS file to handle contact form submission with AJAX and some validation..

Please add a simple option to load additional scripts in the footer, in addition to main.min.js and font-awesome. Perhaps a extra_scripts list?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions