Using of renderPlain is deprecated since 10.3.0 and needs to be replaced with renderInIsolation.
Active
2.0
Code
Since this is in the 2.x line, but about ajax, I'm not sure how to feel about this. I don't want to risk breaking anything in that part, but this should no longer work on 11.x.