JavaScript
スクリプトのエンキュー
管理画面でのウィジェットのフォーム
A quick note on how to do it, and a note on running the JS, so that it doesn’t get ran on the html used to create new widget forms, only those in the sidebars on the right
For the frontend
How to enqueue a widgets scripts and styles, but only if the widget is on the page
Events
Running code when: