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

  • Home
  • SEARCH
  • 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 1064379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:55:55+00:00 2026-05-16T18:55:55+00:00

is it possible to request more than 1 Feed at the same time? for

  • 0

is it possible to request more than 1 Feed at the same time?

for example

google.load("feeds", "1",{"callback" : 'get_it(\'http://
www.fernsehkritik.tv/?feed=podcast\',\'1\'),get_it(\'http://rss.golem.de/rss.php?feed=RSS1.0\',\'99\')'});

or …

 google.load("feeds", "1",{"callback" : 'get_it(\'http://
www.fernsehkritik.tv/?feed=podcast\',\'99\')'});
google.load("feeds", "1",{"callback" : 'get_it(\'http://rss.golem.de/
rss.php?feed=RSS1.0\',\'99\')'});

Both solutions are working but i am not sure, is this the right
(clean) way?

Thanks in advance!
Peter

  • 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-05-16T18:55:56+00:00Added an answer on May 16, 2026 at 6:55 pm

    So I think you’re a slight bit confused at to what’s going on. When you call google.load("feeds", "1",{"callback": "get_it('http://myfeed.com/whatever')"}), you’re not requesting that Google go load the feed at http://myfeed.com/whatever. What you’re saying is: “Hey, Google, load up the javascript to support your feed api, and when your feed api is all loaded and ready to use, call get_it('http://myfeed.com/whatever'), where presumably get_it is a function you’ve defined already in your page that uses Google’s feed api to do its thing.

    So I think your purpose would be better served by defining a single javascript function to execute one the feed is ready, something like:

    function feed_api_ready() {
      get_it('http://www.fernsehkritik.tv/?feed=podcast', '99');
      get_it('http://rss.golem.de/rss.php?feed=RSS1.0', '99');
    }
    

    And then calling simply:

    google.load("feeds", "1",{"callback" : 'feed_api_ready'})
    

    That’ll execute both “go get the feeds” functions right away when the Google API is all loaded.

    Now, as for getting the feeds in parallel: believe it or not, that will also load the feeds in parallel. Javascript doesn’t really have any ability to block and wait on network I/O, so anything in javascript that gets stuff from the network always has to be written in the form: “Go make this network request, and here’s a function to call when you eventually get a response”. But in the meantime, the javascript engine on the browser keeps going without waiting for the response to come back.

    This means that above, you’ll fire off the request for http://www.fernsehkritik.tv/?feed=podcast and your browser will continue executing javascript without waiting for the network to respond, and you’ll fire off the second request for http://rss.golem.de/rss.php?feed=RSS1.0. So the network traffic for both feeds will then be coming back to your browser in parallel, even though javascript in the browser doesn’t allow multiple threads of execution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is the WSDL http://www.webservicex.net/stockquote.asmx?WSDL I'm trying to get more than 1 stock in
Is it possible to use more than on criteria in one search request through
Is it possible to upload two (or more) files in only one request?? I've
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: Multiple arguments to function called by pthread_create()? How to pass more than
For a single web request, We fetch more than 1000 rows of data from
I'm starting a new project, trying to do things right this time(so more than
I'm doing the simplest ajax request possible: public ActionResult SayHello() { return Content(YYAAAY); }
Possible Duplicate: How to request a random row in SQL? Currently Using: $randomQuery =
Possible Duplicate: PHP detecting request type (GET, POST, PUT or DELETE) This should be

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.