Forum Moderators: open
Can you help me? I have a slow website (http://www.site.com/) and I think the rss-to-javascript codes in my html codes causes the slow page loads. Whithout the codes in the html , my site loads faster . The animated gif banner may play a role in the slow page load but that's not the main cause.
Code start
<script language="JavaScript" src="http://www.site.com/php/hbphpfeed/feed2js.php?src=http%3A%2F%2Fwww.kiplinger.com%2Fabout%2Frss%2Fkiplinger.rss&chan=n&num=2&desc=0&date=y&targ=y" type="text/javascript"></script>
<noscript>
<a href="http://www.site.com/php/hbphpfeed/feed2js.php?src=http%3A%2F%2Fwww.kiplinger.com%2Fabout%2Frss%2Fkiplinger.rss&chan=n&num=2&desc=0&date=y&targ=y&html=y">View RSS feed</a>
</noscript>
code ends
Is there a way to create an external .js file and link it for my rss feeds?
Thanks
Claude
<Sorry, no personal URLs. See TOS [webmasterworld.com]>
[edited by: tedster at 5:38 pm (utc) on Aug. 21, 2004]
Hi
you are using a php script which calls an external rss url which is then converted to javascript (more than likely using document.write).
the problem with parsing external urls is they can slow your page down if the site serving the content is busy or slow. The problem you are talking about appears to be the sites serving the rss files and not your javascipt or php code
Try experimenting with some of the feeds listed in the rdd directory at [site...] see if your page loads quicked using different rss providers. If it does then its probably a safe bet that whoever is providing the feeds you currently use is probably the problem
thanks
Yes, I'm using a PHP script that converts 3 Rss files/reeds (Bankrate, Kiplinger & Growinglifestyles) to JS to be able to view on my site.
The php script runs on my server but the actual rss files are calling external rss urls such as [bankrate.com...]
[kiplinger.com...]
[growinglifestyle.com...]
I have 3 rss files. I tested each individually
by themselves on blank html templates
See the templates here
[site.com...]
[site.com...]
[site.com...]
but I don't see which one is slowest. So I don't see what is causing the problem. The files size for [site.com...] is only 14K . So I'll try my luck at putting the js code in an external .js file and pull it from there. Can anyone help me with that?
Could it be something else? The 468x60 animated banner on the middle part of my top page could be the problem but I'm not sure.
Can you give me any other ideas as to what is causing the slow pages loads.
Thanks for your help
Claude