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