Author Topic: Too many mods. Page loads slow. When does code get called?  (Read 4383 times)

0 Members and 1 Guest are viewing this topic.

Offline jengwen

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.jenrichardsphotography.com
Too many mods. Page loads slow. When does code get called?
« on: June 30, 2003, 08:01:26 PM »
I have installed quite a few mods.  I am now running into a problem where my home page takes awhile to load, so the user just sees a blank white screen for a few seconds.  I am thinking about removing some of the mods, but would prefer not to get rid of all the code, so I could put them back easily.  My question is when does the code get called?  If I remove the {field} from the html pages, does all the code to get that field stop getting called?  Or, does it all get called regardless of if you display the field or not?  The answer is probably somewhere in between, but any insights would be appreciated.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Too many mods. Page loads slow. When does code get called?
« Reply #1 on: June 30, 2003, 08:34:21 PM »
It gets called regardless of whether or not you have the {} tag in the templates.

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
Too many mods. Page loads slow. When does code get called?
« Reply #2 on: June 30, 2003, 11:39:17 PM »
In the php files you could just comment out the bits of code you don't want to use.
eg. add "//" to the begining of each line.

Be careful to test though as it's not as easy as it may seem.
By doing this you don't have to remove the "{}"'s either as they will be ignored.

BACKUP FILES FIRST  :!:  :!:  :!:
That's my 2 cents/pennies/francs/etc. worth  :D
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.