(first post, so I wasn’t allowed to include a full URL/links; sorry)
URL to jQuery’s ajaxPrefilter: api.jquery.com/jquery.ajaxprefilter/
If I understand $.ajaxPrefilter() correctly, it only fires on AJAX calls. For Pjax requests (where HTML is returned), that would work. However, the script tags within the returned HTML does not appear to go through the same $.ajaxPrefilter() process since it’s not being pulled in over Ajax.
For reference, the original feature came from: github.com/yiisoft/yii2/pull/1149
I’m posting this here first because I feel like I’m missing something. Can someone confirm this?