I was trying to optimize a little bit my web/cleaning out html code, and I just noticed that on /templates/whatever/main_page.tpl.php we are calling:
So we are adding the form check code on every page on our web site. Yeah, I know it won't hurt, but besides adding on my case almost 5k of code to every served page, it looks quite ugly to see all that code on pages pages that have nothing to do with it.Code:<?php require('includes/javascript/form_check.js.php'); ?>
Has anyone bothered trying to move it only to the files where it is actually needed? Like
/templates/whatever/content/account_edit.tpl.php
/templates/whatever/content/account_password.tpl.php
...
Am I being too picky here? (yeah, I know I am wasting my time)





LinkBack URL
About LinkBacks











Bookmarks