adbox Posted August 22, 2007 Share Posted August 22, 2007 I use feed2js to call various rss feeds and one issue I have with this program is the lag time it takes to syndicate the newsfeed im trying to call. I know the script uses the onload javascript function to call the rss/xml file; and the load lag is the time it takes to load the xml once the onload function is called... anyone else experience this and annoyed? -- can feed2js be replaced? Can a cron job be used to store feed data twice a day to shorten load time? can the onload function be replaced to load the off server material simultaneously with the rest of the page-- elimitating the lag? Quote Link to comment Share on other sites More sharing options...
adbox Posted August 30, 2007 Author Share Posted August 30, 2007 Just to update, I got some responces on other forums... so the new situation looks like this: The Scenario: I use feed2js to syndiacate rss within my website. The javascript insert that pulls the syndicated rss into the webdocument uses the onload function. The way this onload setup works causes a significant lag time for the rss to fully load, causing a page to load, and then the visitor experiences a 2-3second lag time before the rss pops up. Feed2Js Source Code Download: http://magpierss.sourceforge.net The Imagined Solutions: Some file within this program calls the RSS from a source and "parses it(what does that mean?)" and then the parsed information is called into the html document calling it. Keeping the onload function in tact, the source of the lag comes from the retrieval of freash information. Freash information is not really needed. I would like to have, in some way, a job to be set up to retrieve and parse the rss data and then store it into a file already parsed... this way the javascript is calling data prestored and preparsed, cuting the lag time to .. say half a second. Another solution... and maybe it could be an addition to the first solution-- is to relace the onload function with some other function that allows the information to be called prior to the complete loading of the webpage.. so the syndicated rss loads with the rest of the page, eleminating a lag all togeather. Could anyone download this program and help me out on it? I would greatly appreciate it and be indebted to you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.