Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8809273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:49:56+00:00 2026-06-14T02:49:56+00:00

I apologize if this question has been posted once before, I am a noob

  • 0

I apologize if this question has been posted once before, I am a noob to jquery, but It seems like I have part of it working.

I have the code partly working, but when you go to krissales.com, it’ll load the page twice, if you see what I mean. I just want it to load once, on fade in, and once on fade out, however it does it twice.

Again, I apologize if this has already been posted. I do appreciate your time. Thank you.

This is the code I have:

function page_load($href) {
  if($href != undefined && $href.substring(0, 2) == '#/') {
    // replace body the #content with loaded html
    $('#content').load($href.substring(2)); 
    $('#content').fadeOut('slow', function() {   
      $('#content').fadeIn('slow');
    });
  }
}

the full core is at:

http://www.krissales.com/_lib/_js/core.js

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:49:58+00:00Added an answer on June 14, 2026 at 2:49 am

    You are doing a slow fadeOut, then fadeIn within the callback. You can try hiding #content within the load() method callback, then chaining a fadeIn() as the final method. For example:

    function page_load($href) {
      if($href != undefined && $href.substring(0, 2) == '#/') {
        // replace body the #content with loaded html
        $('#content').load($href.substring(2), function () {
          $('#content').hide().fadeIn('slow');
        });
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize if this question has been asked before, but my case is a
This question has been posted on Stack before, but none so specific as to
I'm sure this question has probably been answered before, so I apologize, but I
I know that this question has been asked loads of times, but I have
I apologize if this has been asked before, but I haven't quite found the
I apologize if this question has been answered elsewhere, but I couldn't seem to
I apologize if this question has been answered already, but I cannot seem to
If this has been asked before, I apologize but this is kinda of a
First off, I apologize if this question has been asked before. I've done a
First off, I apologize if this question has already been asked. I searched but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.