Support » Fixing WordPress » enque script not working

  • hi, i copied wp_enqueque_script bt when i see my page soruce code, it doesn’t tell the url of google cdn to see if it is loaded..can anyone help me. am i missing something

    function my_scripts_method() {
      wp_deregister_script( 'jquery' );
      wp_register_script( 'jquery',    '');
      wp_enqueue_script( 'jquery' );
    add_action('wp_enqueue_scripts', 'my_scripts_method');

Viewing 1 replies (of 1 total)
  • Don’t register as ‘jquery’. Try ‘gjquery’ or ‘glibjquery’ instead. There seems to be an issue with registering using names whose first characters match WordPress native registrations. You can be part of my experiment. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘enque script not working’ is closed to new replies.