andrewdavey / andrewdavey/cassette

Specifying the order inline scripts are rendered on the page

Open
#430 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
531
Forks
139
PR merge metrics
No merged PRs in 30d

Description

Apologies if there is a way of doing this, I just haven't figured it out. :)

I have a scenario whereby I have a razor layout page and a view with inline scripts in both. However I want the inline script in the view to be rendered above the script in the layout page (both are tracking tags, one needs to appear above the other). I could solve this by specifying a page location but I'd like a more elegant solution - perhaps by specifying a sort order / index in the AddInlineScript tag?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.