• Resolved HarroH

    (@harroh)


    Hi Guys,

    I believe I followed all steps but the plugin is not merging JS files.

    Enquere scripts:

    /*
     * Add javascript
     *
     */
    
    function tabs_theme_javascript() {
    
    	// add plugins and libraries
    
    	wp_deregister_script( 'wp-embed' );
    
    	wp_deregister_script( 'jquery' );
    
    	wp_register_script( 'jquery', get_template_directory_uri() . '/src/js/vendor/jquery-2.2.4.js', array(), VERSION, true );
    	wp_register_script( 'cycle2', get_template_directory_uri() . '/src/js/vendor/jquery.cycle2-2.1.6.js', array(), VERSION, true );
    	wp_register_script( 'reveal', get_template_directory_uri() . '/src/js/vendor/scrollreveal.min.js', array(), VERSION, true );
    
    	wp_register_script( 'app', get_template_directory_uri() . '/dist/app.js', array(), VERSION, true );
    
    	wp_localize_script( 'app', 'ajax_object', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ), VERSION, true );
    
    	wp_enqueue_script( 'jquery' );
    	wp_enqueue_script( 'cycle2' );
    	wp_enqueue_script( 'reveal' );
    	wp_enqueue_script( 'app' );
    
    }
    
    add_action( 'wp_enqueue_scripts', 'tabs_theme_javascript' );

    Tried clearing the cache, not results. All options on JS are unchecked. What could be the issue? Java/Exec/YUI not available on the server.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    Do you have any other plugin, trying to move scripts to the footer, or interfering with the loading order in any way?

    Where are you putting that function above? Your theme functions.php file?

    Why are you deregistering jquery? A lot of plugins use that as a requirement to load theirs. Maybe try to enqueue it, right after deregistering, and make sure jquery goes in the header, before FVM processes it.

Viewing 1 replies (of 1 total)
  • The topic ‘Not merging/minify’ is closed to new replies.