Speed up loading of the slider

Hi, I would first like to congratulate you for the theme. and 'a really well done theme!
I wanted to ask how to move the script that loads the slider from the header footer.
When I use the Google optimization test, he tells me to give priority to the visible content. In the slider effects are not immediately charged. Use a child-theme.
thank you

Hi @alexsalento,

I hope you are well today and thank you for your question.

You can try using the following plugin solutions to achieve this.

Best Regards,

thanks for the advice, but if possible I would like to avoid using plugins to be lighter on my installation.
Have found this topic:

and I customized the code by entering in this way in the functions.php of the theme child files, but don’t work:

if( ( is_home() || is_front_page() ) && get_theme_mod('activello_featured_hide') == 1 ) {
function insert_jquery(){
wp_enqueue_script('flexslider-js', false, array(), false, false);

could you help me? you can use something like this instead of using a plugin?
Thanks for your help

The flex slider script already loads for me in the footer as shown in the attached screenshot.

If it is not happening on your site then could you please share me your site URL where it’s happening so that i can troubleshoot it?