1
rcjohnson
Java script makes page run slow - better place to run than theme.html?
  • 2004/9/7 15:38

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


is there a better place to add javascript into your XOOPS site. I needed a navagation bar, so I just added the scripts that I wanted. The problem is, that the site runs kinda slow whenever a new page is pulled up. I put the scripts in the theme.html.

Is there a better place to put the script, maybe a place so that it is cached or something.


2
hervet
Re: Java script makes page run slow - better place to run than theme.html?
  • 2004/9/7 16:10

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Try to add your javascript code inside an html block an use cache on this block.

3
rcjohnson
Re: Java script makes page run slow - better place to run than theme.html?
  • 2004/9/7 16:45

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


I've tried using a custom block for my navagation bar, but there is just to much whitespace between the block title and the nav bar menu. It just does not give the desired look Im trying for.

4
rcjohnson
Re: Java script makes page run slow - better place to run than theme.html?
  • 2004/9/7 17:32

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


It seems the size of the block is proportional to the size (char count) of the script. When I just use bb code, with text links, the spacing between the top of the block and the text is ok...I guess I'll have to pick the lesser of two evils...

5
hervet
Re: Java script makes page run slow - better place to run than theme.html?
  • 2004/9/10 15:40

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Set the type of the block to html

Login

Who's Online

361 user(s) are online (284 user(s) are browsing Support Forums)


Members: 0


Guests: 361


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits