Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
optimize js
Browse files Browse the repository at this point in the history
  • Loading branch information
wbruno committed Feb 23, 2014
1 parent 87992e3 commit 0e539f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
Expand Down
4 changes: 3 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@
<link rel="canonical" href="<?php the_permalink(); ?>" />
<?php } ?>

<link rel="dns-prefetch" href="http://google-analytics.com" />

<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />

<!--[if lt IE 9]>
<script src="http://www.pinceladasdaweb.com.br/blog/wp-content/themes/pw/javascript/html5-shiv.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/src/javascript/html5-shiv.js"></script>
<![endif]-->

<?php wp_head(); ?>
Expand Down

0 comments on commit 0e539f5

Please sign in to comment.