How to use jQuery ready event in magento 2 ( adobe commerce )?

For using jquery ready event in magento 2 templates you need to have construction like this:

<script>
require(['jquery', 'jquery/ui'], function(){
jQuery( document ).ready(function() {
// any your code
});
});
</script>

 

 

33