-
AuthorPosts
-
frodojrr Friend
frodojrr
- Join date:
- December 2007
- Posts:
- 89
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
June 25, 2009 at 11:53 pm #142255I am working on optimizing JA Teline II. I have combined CSS files and two JS files, and would like to further optimize to cut down on server requests. Optimized files are the GZIP-ed and served as GZ files to browsers that can accept them.
Where do I go in the code to find the following lines which are generated by PHP or by Javascript?
First, the Menu Head, generated by this line:
<?php $jamenu->genMenuHead(); ?>
This is produced in the template:
<!-- Menu head -->
<link href="http://www.enewspf.com/templates/ja_teline_ii/ja_menus/ja_cssmenu/ja.cssmenu.css" rel="stylesheet" type="text/css" />
<script src="http://www.enewspf.com/templates/ja_teline_ii/ja_menus/ja_cssmenu/ja.cssmenu.js" language="javascript" type="text/javascript"></script>
<link href="http://www.enewspf.com/templates/ja_teline_ii/css/colors/theme.css" rel="stylesheet" type="text/css" />Can I get rid of this PHP line, and just insert this code into my template.css file to cut down on server requests?
Now, I think the next two lines generate code. These lines:
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>Generate these lines:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="Park Forest News, Park Forest, park forest village government, park forest village hall, park forest police reports, park forest fire, park forest police blotter, nonpartisan, Chicago, news, nonpartisan government, park forest star newspaper, role of government, news magazine,political parties government, IL" />
<meta name="description" content="eNews Park Forest is the only online news source exclusively serving Park Forest, IL, and beyond." />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
<title>eNews Park Forest</title>
<link href="/index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
<link href="/templates/ja_teline_ii/favicon.ico" rel="shortcut icon" type="image/x-icon" /><link rel="stylesheet" href="/plugins/system/jceutilities/css/jceutilities-220.css" type="text/css" />
<link rel="stylesheet" href="/plugins/system/jceutilities/themes/light/css/style.css" type="text/css" />
<link rel="stylesheet" href="/templates/ja_teline_ii/css/ja.news.fp.css" type="text/css" />
<link rel="stylesheet" href="/templates/ja_teline_ii/css/ja.news.css" type="text/css" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/plugins/system/jceutilities/js/mediaobject.js"></script>
<script type="text/javascript" src="/plugins/system/jceutilities/js/jceutilities-220.js"></script><script type="text/javascript" src="/media/system/js/caption.js"></script>
<script type="text/javascript">
MediaObject.init({'flash':"10,0,22,87",'windowmedia':"5,1,52,701",'quicktime':"6,0,2,0",'realmedia':"7,0,0,0",'shockwave':"8,5,1,0"});window.addEvent('domready', function(){var jcepopup=new JCEUtilities({'popup':{'legacy':0,'resize':1,'icons':1,'overlay':1,'overlayopacity':0.8,'overlaycolor':"#000000",'fadespeed':500,'scalespeed':500,'hideobjects':1,'scrollpopup':1,'theme':"light",'themecustom':"",'themepath':"plugins/system/jceutilities/themes"},'tootlip':{'classname':"tooltip",'opacity':1,'speed':150,'position':"br",'offsets':"{'x': 16, 'y': 16}"},'imgpath':"plugins/system/jceutilities/img",'pngfix':1,'wmode':0});});
</script>
<!-- JoomlaWorks "Tabs & Slides" Module (v1.0) starts here -->
<style type="text/css" media="screen">
@import "http://www.enewspf.com/modules/mod_jw_ts/mod_jw_ts/tabs_slides.css";
</style>
<style type="text/css" media="print">
.jwts_tabbernav{display:none;}
</style>
<script type="text/javascript" src="http://www.enewspf.com/modules/mod_jw_ts/mod_jw_ts/tabs_slides_comp.js"></script><script type="text/javascript" src="http://www.enewspf.com/modules/mod_jw_ts/mod_jw_ts/tabs_slides_def_loader.js"></script>
<!-- JoomlaWorks "Tabs & Slides" Module (v1.0) ends here -->
Is there a way I can change these includes and consolidate some of these JS and CSS files? I would like this section to only include the META tags.
Is any of this possible?
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
November 8, 2009 at 9:34 pm #322966This should be an answer to a few of your prayers:
Have fun!
John.1 user says Thank You to John Wesley Brett for this useful post
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by John Wesley Brett 15 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum