回答編集履歴
2
追記2 : Prototype.js
answer
CHANGED
@@ -6,4 +6,9 @@
|
|
6
6
|
> 最低限IE10への対応が必要
|
7
7
|
|
8
8
|
Stack Overflow [Does IE10 support DOM4 Mutation Observers?](https://stackoverflow.com/questions/14180603/does-ie10-support-dom4-mutation-observers)
|
9
|
-
「No! IE11 から」らしいですので要件外ですね。
|
9
|
+
「No! IE11 から」らしいですので要件外ですね。
|
10
|
+
|
11
|
+
---
|
12
|
+
似たような方法に、[Prototype.js](http://prototypejs.org/) の [Event.observe](http://javascriptist.net/ref_prototype/event.observe.html) があります。
|
13
|
+
|
14
|
+
[jQuery とのコンフリクトを回避](http://semooh.jp/jquery/ref/cont/with_prototype/)するために、読み込み順があります。
|
1
追記
answer
CHANGED
@@ -1,3 +1,9 @@
|
|
1
1
|
> 先ず発火条件ですが、「そのページを表示しきった直後」を想定
|
2
2
|
|
3
|
-
SPA であれば、 HTML 内の ``#content`` など、「特定の wrapper が更新された後」となると思いますので、[MutationObserver](https://developer.mozilla.org/ja/docs/Web/API/MutationObserver) で変化を監視する方法もありそうですね。
|
3
|
+
SPA であれば、 HTML 内の ``#content`` など、「特定の wrapper が更新された後」となると思いますので、[MutationObserver](https://developer.mozilla.org/ja/docs/Web/API/MutationObserver) で変化を監視する方法もありそうですね。
|
4
|
+
|
5
|
+
追記)
|
6
|
+
> 最低限IE10への対応が必要
|
7
|
+
|
8
|
+
Stack Overflow [Does IE10 support DOM4 Mutation Observers?](https://stackoverflow.com/questions/14180603/does-ie10-support-dom4-mutation-observers)
|
9
|
+
「No! IE11 から」らしいですので要件外ですね。
|