can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r21758: LJSUP-11891: Like buttons on the journal...

Committer: dpetrov
LJSUP-11891: Like buttons on the journal pages should be loaded only when they become visible on the screen.
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-04-19 15:00:54 UTC (rev 21757)
+++ trunk/cgi-bin/cleanhtml.pl	2012-04-19 15:07:43 UTC (rev 21758)
@@ -849,7 +849,7 @@
                     }
                 }
 
-                $newdata .= '<div class="lj-like">';
+                $newdata .= '<div class="lj-like"><!--';
                 foreach my $button (@buttons) {
                     if ( $button eq 'facebook' ) {
                         my $language = LJ::Lang::get_remote_lang();
@@ -929,7 +929,7 @@
                         }
                     }
                 }
-                $newdata .= '</div>';
+                $newdata .= '--></div>';
             }
 
             # Don't allow any tag with the "set" attribute

Tags: can3p, dpetrov, livejournal, pl
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