pynchon Posted March 13, 2007 Posted March 13, 2007 All links on my homepage are hard-coded ... no category box ... the only links generated dynamically are the breadcrumb trail. Can I lose any of the code from index.php to perhaps help to speed up the page load ?? cheers JK
Nullachtfuffzehn Posted March 13, 2007 Posted March 13, 2007 The most common reason for long loading times are pics or animations, not any hardcoded or dynamically generated links. They take only a few milliseconds to be created.
pynchon Posted March 13, 2007 Author Posted March 13, 2007 The most common reason for long loading times are pics or animations, not any hardcoded or dynamically generated links. They take only a few milliseconds to be created. cheers for that ... there are a few images but have been optimised as far as they can go. The load time isn't worryingly slow. I assumed that there would be quite a few redundant calls to the database, but as they run so fast I suppose I shopuldn't let it worry me :) John K
davidinottawa Posted March 13, 2007 Posted March 13, 2007 cheers for that ... there are a few images but have been optimised as far as they can go.The load time isn't worryingly slow. I assumed that there would be quite a few redundant calls to the database, but as they run so fast I suppose I shopuldn't let it worry me Hi John - if your site is running slow, it's highly unlikely because of the hyper links being created from the database contents. If you hard code the links, be sure to go through the tep_href function so as to not lose any session variable data that may have been added to the cart, or profile info if they are logged in. Also - you should specify if they are SSL or NONSSL tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) david
pynchon Posted March 13, 2007 Author Posted March 13, 2007 Hi John - if your site is running slow, it's highly unlikely because of the hyper links being created from the database contents. If you hard code the links, be sure to go through the tep_href function so as to not lose any session variable data that may have been added to the cart, or profile info if they are logged in. Also - you should specify if they are SSL or NONSSL tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) david cheers david I'm going to leave things asn they are for a few days. I'll get around to breaking the site at the weekend. :) John k
Recommended Posts
Archived
This topic is now archived and is closed to further replies.