# Using the JS API

**URL:** https://meta.discourse.org/t/using-the-js-api/41281
**Category:** Developer Guides
**Tags:** plugin-api, explanation, code
**Created:** [March 18, 2016, 6:52pm UTC](https://meta.discourse.org/t/using-the-js-api/41281 "2016-03-18T18:52:02Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 25, 2025, 12:50pm UTC](https://meta.discourse.org/t/using-the-js-api/41281/17 "2025-05-25T12:50:16Z")

</div>

> [@Discourse](#):
>
> `<script type="text/discourse-plugin" version="0.1">`

This is now deprecated as of:

> [@Modernizing inline script tags for templates & JS API](https://meta.discourse.org/t/modernizing-inline-script-tags-for-templates-js-api/366482):
>
> Using \<script type='text/discourse-plugin\> or \<script type='text/x-handlebars'\> in themes is now deprecated. Any use of these tags in themes should be updated according to the instructions below. Regular \<script\> and \<script type='text/javascript'\> are unaffected by this change. Timeline These are rough estimates, subject to change May 2025 - console deprecation messages enabled July 2025 - admin warning banners enabled Late September 2025 March 2026 - removal of feature Converting…

---

_[View the full topic](https://meta.discourse.org/t/using-the-js-api/41281)._
