Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java slider blocking my homepage

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java slider blocking my homepage

    Hello! I have a magazine based on wordpress and I had serious issues with a Javascript.
    I will do my best to describe what happened, it is literally driving me crazy because I fail to see what could have caused it.

    I have loaded Wordpress on my VPS server and it worked fine until let's say March. Then I started to have problems with the slider. The slider, which had a java code, started to block the whole homepage because it was failing to load and this prevented the rest of the webpage to load as well.

    Then I switched the option from slider to still image. It was loading. Then after a while – and nothing changed in the website code!!! – it stopped loading again.
    So Slider working -> Blocked the homepage out of the blue -> Disabled sliding option -> Homepage working fine -> Blocked the homepage out of the blue

    This was coming up as an error on my console:

    TypeError: 'undefined' is not a function (evaluating 'jQuery("#featured-content").loopedSlider({
    autoStart: 3000,
    slidespeed: 500,
    containerClick: false,
    autoHeight: false
    })')

    I tried many fixes, noting worked. So I cancelled it and installed a new different slider! Everything was smooth. The new one is a more sophisticated slider and you can choose between two scripts to load it, I can switch them with just a click: either SmoothGallery Mootools or jQuery. I preferred jQuery because it did not show a loading bar at the beginning.

    Four days ago after I rebooted the server I noticed it was not loading anymore! It was not loading the slider but the rest of the homepage yes (with the previous one it was blocking the whole page when the slider was blocked)! However, the bottom part with the sport articles was not loading (so let's say slider not loading and 80% of the page loading)

    I usually use Firefox so I tried with Safari and my iPhone and it was working fine. I noticed it was because I was not logged in on wordpress. So I logged out on Firefox and it was working.

    Ok, not a big deal, readers are not logged in.

    The following morning I checked it again and it was blocked also for those not logged in! Nothing changed in the code though, nor I have rebooted. So the day before 100% loading for those not logged in, 80% for those logged in -> Afterwards 80% for everyone

    So I switched from the jQuery script to Mootools in the settings of our slider. It started to load the slider just fine, but not the bottom part of the page (still 80%).

    During the two following days – without anything changing – it got to load only 60% of the homepage content and now even 50%! And nothing is changing in the code

    So – as we speak – I tried to de-activate the plugin of the slider. Once I de-activate it the whole page loads fine on Safari, and on Firefox everything is good except the bottom right (95% good).

    The situation now is that if I choose jQuery the slider is not loading and also 50% of the homepage, if I choose Mootools it loads the slider but still only 50% of the homepage.

    Nothing changed in the code! What surprises me is that it is getting worse without anything changing. Any ideas?

    The Upcoming|read the news // live the culture is the website

    I checked the error and access logs on apache: nothing related. I checked with Firefox and Safari's error consoles: nothing at all.

    Any help would be greatly appreciated!


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java slider blocking my homepage

    Try asking on a javascript forum. This one is for java.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Blocking in java.util.concurrent Classes
    By bgroenks96 in forum Threads
    Replies: 0
    Last Post: November 14th, 2011, 10:38 PM
  2. updating SWT Slider from separate java class
    By ppmckee in forum AWT / Java Swing
    Replies: 0
    Last Post: April 14th, 2011, 03:23 PM
  3. Blocking format (important)
    By benglish in forum Java Theory & Questions
    Replies: 3
    Last Post: April 11th, 2011, 06:34 PM
  4. blocking a network connection
    By BraveProgrammer in forum Java Networking
    Replies: 4
    Last Post: September 2nd, 2010, 12:08 PM
  5. Partial messages problem with Java non-blocking socket communication
    By perl0101 in forum What's Wrong With My Code?
    Replies: 14
    Last Post: July 28th, 2010, 03:38 PM

Tags for this Thread