TinyPortal

Development => Support => Topic started by: elliel on February 18, 2006, 03:48:15 AM

Title: question about code snippets and site performance
Post by: elliel on February 18, 2006, 03:48:15 AM
Hi

I have a website that has a lot of little code snippets and javascript things on it, some of them would be really cool to use in tiny portal.

But when I was talking to my host a few months ago, he told me that my site was very slow to load and it was mainly due to all the javascripts that were calling to other places.

So this has put me off adding them to my new TP install, as I dont want them to affect the performance of the forum.

Does anyone know if this is true or does it depend on what and where the script is coming from?

eg  the google search box, amazon links, yahoo weather links for cities, quotes of the day, word of the day, all pulling info the sites that are offering it.

Some of them are really cool but Im concerned about them slowing the site down.  If you say they wont then Im happy to post them here for anyone to try.



~thanks
Title: Re: question about code snippets and site performance
Post by: Tucker on February 18, 2006, 07:14:27 AM
Imaging your're going to buy a newspaper. Some of the articles (on the frontpage) are blank and you (client-side javascript) or the seller (server-side php-snippet) hast to collect the missing information from other papers in the store.

That can be a problem, right?

So it is always your decision: is this feature cool enough?

cu, Tucker
Title: Re: question about code snippets and site performance
Post by: bloc on February 18, 2006, 10:30:05 AM
Totally agreed.

You always have to balance what is most important. One or two things to consider..1.) use the blocks to display different blocks(with your code snippets) for different membergroups, and/or....2.) use the articles(php or html) to split up the info among several pages. then link to them on a overview page for example....as opposed to having EVERYTHING on one page and/or in blocks. ;)