vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r22714: LJSUP-13375: Move third party LJLike's j...

Committer: vad
LJSUP-13375: Move third party LJLike's java scripts to page bottom
U   trunk/cgi-bin/LJ/Hooks/LJLike.pm
Modified: trunk/cgi-bin/LJ/Hooks/LJLike.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/LJLike.pm	2012-08-21 15:04:24 UTC (rev 22713)
+++ trunk/cgi-bin/LJ/Hooks/LJLike.pm	2012-08-21 16:05:08 UTC (rev 22714)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-LJ::register_hook( 'insert_html_after_body_open' => sub {
+LJ::register_hook( 'insert_html_before_body_close' => sub {
     my ($after_body_open_ref) = @_;
 
     return if $LJ::REQ_GLOBAL{'sitewide_resources_ljlike_google'}++;
@@ -15,7 +15,7 @@
     $$after_body_open_ref .=  qq{<script type="text/javascript">LiveJournal.injectScript('http://apis.google.com/js/plusone.js',{text:"{lang: '$locale'}"});</script>};
 } );
 
-LJ::register_hook( 'insert_html_after_body_open' => sub {
+LJ::register_hook( 'insert_html_before_body_close' => sub {
     my ($after_body_open_ref) = @_;
 
     my $language = LJ::Lang::get_remote_lang();
@@ -32,7 +32,7 @@
     };
 } );
 
-LJ::register_hook( 'insert_html_after_body_open' => sub {
+LJ::register_hook( 'insert_html_before_body_close' => sub {
     my ($after_body_open_ref) = @_;
 
     return if $LJ::REQ_GLOBAL{'sitewide_resources_ljlike_twitter'}++;

Tags: livejournal, pm, vad, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments