WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
Disable loading image/part (4 posts)

  1. mangtimo
    Member
    Posted 1 year ago #

    Hello,

    Is it possible to disable the loading image?
    I just need the pages to transition faster between another without the slight pause with the loading image inbetween.

    Would be of great help. Thanks!

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. Bryonmathf
    Member
    Posted 12 months ago #

    Hi,

    Did you ever figure this out? I am just about to start working on the exact same project.

  3. mangtimo
    Member
    Posted 12 months ago #

    Unfortunately, no... I had to resort to a different solution and dropped AJAX altogether. Hope you have better luck on finding a workaround.

  4. Bryonmathf
    Member
    Posted 12 months ago #

    I solved this,

    Here is a demo - http://schillings.huntingtonwebdesign.com/

    3 easy steps in the file advanced-ajax-page-loader/ajax-page-loader.js

    1) is set fadeout from "slow" to 0
    2) is set fadein from "slow" to 0
    3) is comment out the line document.getElementById(AAPL_content).innerHTML = AAPL_loading_code;

    Original Code looks like,

    -------------------------------------------------
    //start changing the page content.
    jQuery('#' + AAPL_content).fadeOut("slow", function() {
    //See the below - NEVER TRUST jQuery to sort ALL your problems - this breaks Ie7 + 8 :o
    //jQuery('#' + AAPL_content).html(AAPL_loading_code);

    //Nothing like good old pure JavaScript...
    document.getElementById(AAPL_content).innerHTML = AAPL_loading_code;

    jQuery('#' + AAPL_content).fadeIn("slow", function() {
    -------------------------------------------------

    New code looks like this,

    -------------------------------------------------
    //start changing the page content.
    jQuery('#' + AAPL_content).fadeOut(0, function() {
    //See the below - NEVER TRUST jQuery to sort ALL your problems - this breaks Ie7 + 8 :o
    //jQuery('#' + AAPL_content).html(AAPL_loading_code);

    //Nothing like good old pure JavaScript...
    //document.getElementById(AAPL_content).innerHTML = AAPL_loading_code;

    jQuery('#' + AAPL_content).fadeIn(0, function() {
    -------------------------------------------------

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic