When I use the wp_register_script() and wp_enqueue_script() to load the jquery for the wordpress I got "no data received result with other information like this :
Unable to load the webpage because the server sent no data.
Error code: ERR_EMPTY_RESPONSE
My code to load the jquery is
function theme_script(){
wp_deregister_script( 'jquery' );
wp_register_script('jquery',get_template_directory_uri().'/sliderengine/jquery.js');
wp_enqueue_scripts('jquery');
wp_register_script('amazingslider',get_template_directory_uri().'/sliderengine/amazingslider.js',array('jquery'));
wp_enqueue_scripts('amazingslider');
wp_register_script('initslider-1',get_template_directory_uri().'/sliderengine/initslider-1.js',array('jquery'));
wp_enqueue_scripts('initslider-1');
}
add_action('wp_enqueue_scripts','theme_script');