# Modernizing inline script tags for templates & JS API

**URL:** <https://meta.discourse.org/t/modernizing-inline-script-tags-for-templates-js-api/366482>\
**Category:** Development\
**Tags:** dev-news\
**Created:** [May 19, 2025, 9:55am UTC](https://meta.discourse.org/t/modernizing-inline-script-tags-for-templates-js-api/366482 "2025-05-19T09:55:17Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)\
**Post date:** [August 5, 2025, 3:47pm UTC](https://meta.discourse.org/t/modernizing-inline-script-tags-for-templates-js-api/366482/28 "2025-08-05T15:47:15Z")

</div>

I moved it back to `<head>` for now.  
I’m okay with the warning until it gets solved.  
If it dies, it’s not the end of the world, it’s just a nice workaround for what I was really looking for.

> [@Topic ID as a variable?](https://meta.discourse.org/t/topic-id-as-a-variable/374168):
>
> Is there a way to get the topic ID as a variable within a topic? Use case, we have categories for support and bug tracking tickets. I’d like to set them up with templates like so. This: \> Do \*\*not\*\* remove this line: Support request #$(topicid) Looks like this: Do not remove this line: Support request #246 Open to other ways to get the info. Just not sure how to do this.

---

_[View the full topic](https://meta.discourse.org/t/modernizing-inline-script-tags-for-templates-js-api/366482)._
