Use a dialogue-level <style> element for each subtitle div instead of a renderer-level one in the document <head>.
Use a dialogue-level <style> element for each subtitle div instead of a renderer-level one in the document <head>.

The speedup comes from having a tinier <style> element, so appending animation styles to the element is faster.

Dador/libjass,Arnavion/libjass,Arnavion/libjass,joshuabrown-ellation/libjass,Dador/libjass,joshuabrown-ellation/libjass,joshuabrown-ellation/libjass,Dador/libjass,Arnavion/libjass