Change button on demand without page reload
Sometimes you need "refresh" chat button without page reloading, for example in case of using angularJS or dynamic language switching.
Use button integration code without `LiveAgent.createButton`, so your code will look like:
<script type="text/javascript"> (function(d, src, c) { var t=d.scripts[d.scripts.length - 1],s=d.createElement('script');s.id='la_x2s6df8d';s.async=true;s.src=src;s.onload=s.onreadystatechange=function(){var rs=this.readyState;if(rs&&(rs!='complete')&&(rs!='loaded'...