• Resolved rob916

    (@rob916)


    I hope I’m posting this in the right place. If not please move.

    I run a internet radio station website for a friend and am having an interesting issue. I have a couple widgets and a couple pages that have some jquery script calls in them to pull and display data from the SHOUTcast server which is located on a different server than the WordPress site. On the front page I have a widget that shows the artist and song title that is currently on air, it works fine, I have a menu link that goes to a page of recently played songs that also queries the SHOUTcast server, it will not show anything unless I hit “refresh” on the web browser and then it will show fine. If I exit to another page and go back into it once again it will not show the data until I hit refresh. Is there possibly a conflict with WordPress loading the jquery script multiple times? Is there a better way to preload the script perhaps that will ensure all the data shows?

    http://www.695therock.com is where you can duplicate the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rob916

    (@rob916)

    I removed the jQuery script call from the widgets since WordPress has it’s own jQuery library, I then removed the jquery.shoutcast.easy.min.js library call from the widget and added it to functions.php as an wp_enqueue_script call and the widgets/pages still work however I still have the same issue where if I change to a different page the widget data won’t load unless I hit refresh. I’m completely stumped.

    Thread Starter rob916

    (@rob916)

    Ended up figuring this out after a lot of moving things around. Come to find out the theme I’m using “Soundwave” has a jPlayer for my SHOUTcast stream at the bottom and if you have “nonstop player” turned on it affects the other java scripts from working properly unless you refresh. I turned the “nonstop player” off and everything loads perfectly with no refreshing. Just thought I’d share if anyone else runs into this issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘jquery in widgets’ is closed to new replies.