What I want to know is whether it's right to use JavaScript / JQuery to do some button and screen effects, center content horizontally and do certain tasks that can be done by CSS.
The design here of the company said that it is better to use JS / JQuery for performance and maintenance convenience, but I was researching on the subject and it seems that if I use JS it may have several compatibility errors and that is more difficult to fix punctual errors in certain resolutions, devices, and software versions.To develop web / mobile in a way that supports different screen sizes and different browsers is it correct to use JavaScript to make the animations and layout corrections, or is it correct to use CSS / HTML only? Why?