Templates Forums - Discuss WordPress, vBulletin, phpBB, php Links Direcotry, proxy, Joomla, Drupal, .... layouts

Go Back   TemplatesForums.com > Template Discussions > XHTML & CSS

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

Handy tip: Check the header for JS clutter
Old 11-12-2007, 10:53 AM   #1
jkool
Administrator
 
jkool is offline
Join Date: Nov 2007
Posts: 15
iTrader: 0
jkool is on a distinguished road
Default Handy tip: Check the header for JS clutter

Recently I tried to get one of the new WP layout working on my personal blog and was planning on changing the titles within the sidebar menus.

Since using some non-english language characters (don't ask me about exact code type cause I don't know it ) it behaved somehow erratically.

Basically the site loaded fine for the first 2-3secs with the changed titles with all my "weird" characters displaying properly however after 3-4sec it reverted to slightly nicer font but my "weird" characters either omitted entirely or replaced by "?" .

After much blood and tears (tried to change the fonts, files, coding around) it was a strange piece of JS code within the header.php was pointed out to me by a fellow TFs member here .

It seems it was there to "beautify" the titles and took about 3 secs to load hence initially my titles look fine. Once I got rid of that "clutter" from the header.php my titles looked exactly as I need them.

Well perhaps not as "sexy" as they would with the JS in the header but it is now readable all right
  Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 04:13 PM.


vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forum SEO by Zoints