As someone new to the world of web design, I work with CSS, JavaScript, and jQuery for developing websites.
There are instances where a certain effect can be created using all three. For example, a basic mousehover effect can be accomplished with CSS :hover, JavaScript's onmousehover(), and jQuery's $(#id).hover()
In addition, the jQuery fade-in, fade-out effect could potentially be replicated using CSS transitions.
My query is: When an effect can be achieved using all three languages, which one should take precedence? Which language - CSS, JavaScript, or jQuery - would enhance performance and optimize webpage loading speed?