Hello! I am working on a small but very compensating problem. You need to implement javascript, which would keep the site in balance with the disappearance or appearance of the scroll bar. It is necessary to catch the event of appearance or disappearance in some way, to which I can not guess.
In order to align the site without a strip, you need to do this:
$('.container').css('position','relative').css('right','3px');
When there is a strip, then:
$('.container').css('position','relative').css('right','0px');
I use JQ. How can I solve this problem? Thank you in advance