Add JavaScript-Library “Fitty” to WordPress

I am a beginner of Wordpress with a small programming knoledge. I managed to integrate the fitty-script succsesfully to my Wordpress installation and yes, it works. But only as long as i am logged in as admin in wordpress. Does anyone have an idea what the problem could be. Thanks in advance for your support.Please find below the code:

function child_scripts() {

    wp_enqueue_script( 'fitty', get_theme_file_uri( '/js/fitty.min.js' ), array(), filemtime( get_theme_file_path( '/js/fitty.min.js' ) ), true );

    wp_enqueue_script( 'child', get_theme_file_uri( '/js/child.js' ), array( 'jquery' ), filemtime( get_theme_file_path( '/js/child.js' ) ), true );

    }
        add_action( 'wp_enqueue_scripts', 'child_scripts' );

The code is placed in functions.php of a child theme (impreza). As I am not a developer I don't know how to inspect if the script will be displayed in the source code. I am sorry.

Thanks @Rup. I inspected the site as described, but unfortunately the search of fitty gives me no result. What does it mean?

Topic library Wordpress javascript

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.