Skip to content

Added support to state where custom JavaScript files are imported - Head or Body; Added additional parameters for importing custom JavaScript/CSS, such as Integrity, Async, etc.#690

Merged
Badgerati merged 1 commit intodevelopfrom
Issue-497
Feb 1, 2026

Conversation

@Badgerati
Copy link
Owner

Description of the Change

  • Added a new -Location [Head|Body] parameter to Import-PodeWebJavaScript to define where the file should be imported. The default remains as Body.
  • Added the following additional parameters for Import-PodeWebJavaScript: Blocking, CrossOrigin, FetchPriority, ReferrerPolicy, Integrity, Async, and Defer
  • Added the following additional parameters for Import-PodeWebStylesheet: Blocking, CrossOrigin, FetchPriority, ReferrerPolicy, Integrity

Related Issue

Resolves #497

@Badgerati Badgerati added this to the 1.0.0 milestone Feb 1, 2026
@Badgerati Badgerati self-assigned this Feb 1, 2026
@Badgerati Badgerati added the enhancement ⬆️ New feature or request label Feb 1, 2026
@Badgerati Badgerati merged commit 8e8c889 into develop Feb 1, 2026
5 checks passed
@Badgerati Badgerati deleted the Issue-497 branch February 1, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ⬆️ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding custom javascript snippets or importing files in the html HEAD section

1 participant