Load an action which is in an url with Jquery

$.load() is used to load content into an element. And you need to send a ping/request to a url, don’t need to use what is returned/responded. So, $.post() or $.get() the the solution for this.

$.get('', 'wpfpaction=add&postid=350');

Usage With the current post id –

$.get('', 'wpfpaction=add&postid=<?php the_ID(); ?>');

To dynamically add it from functions.php, you will need to hook on wp_footer

add_action('wp_footer', 'wpf_on_the_footer');
function wpf_on_the_footer()
{
    if( is_single () ) ?>
    <script type="text/javascript">
        $.get('', 'wpfpaction=add&postid=<?php the_ID(); ?>');
    </script>
    <?php
}