我需要滚动HTML或PHP代码的延迟加载。我找到了一个jquery插件,但我不知道如何使用。
http://jquery.eisbehr.de/lazy/
我需要为此延迟加载:
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="contentz" >
<div class="card">
<div class="firstinfo"><?php echo get_avatar( get_the_author_meta('email'), '90' );
?>
<div class="profileinfo">
<?php echo ' <h1> '; the_author_link(); echo ' </h1> ';?>
<h3>Swift developer</h3>
<?php echo ' <p class="bio"> '; the_author_meta('description'); echo '</p>' ?>
</div>
</div>
</div>
<div class="badgescard" >
<a href="goole.com"><span class="fa fa-facebook">dfh</span></a>
<?php $twitter_profile = get_the_author_meta( 'twitter_profile' );
if ( $twitter_profile && $twitter_profile != '' ) {
echo
' <span class="fa fa-twitter"><a href="'.esc_url($twitter_profile).'" target="_blank" ></a> </span>'; }?>
<?php $youtube_profile = get_the_author_meta( 'youtube_profile' );
if ( $youtube_profile && $youtube_profile != '' ) {
echo '<span class="fa fa-youtube"><a href="'.esc_url($youtube_profile).'" ></a></span> ';
}?>
<?php $youtube_profile = get_the_author_meta( 'youtube_profile' );
echo '<a href=" the_author_link();" ><span class="fa fa-youtube"></span></a> '; ?>
<span class="fa fa-google-plus"></span>
<span class="fa fa-youtube"></span>
<span class="fa fa-dribble"></span>
<span class="fa fa-google"></span>
<span class="fa fa-android"> </span>
</div>
</div>
为此:
if ( function_exists('journalite_author_bio') ) {
journalite_author_bio();
}