I am loading "jquery.waypoints.min.js" (seems to load correctly when i look with network analysis tool), but nothing happens with this simple script:
$(document).ready(function() {
    $('#footer').waypoint(function() {
       $('body').addClass("foo");
    });
});
I am trying for hours now ...
Btw. i am loading all my scripts per functions-php in wordpress:
function add_js_scripts() {
    wp_deregister_script('jquery');
    wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js", false, null);
    wp_enqueue_script('jquery');
    wp_enqueue_script('waypoints', get_stylesheet_directory_uri() . '/waypoints/lib/jquery.waypoints.min.js');
}
add_action('wp_enqueue_scripts', 'add_js_scripts');
 
     
    