PageSpeed Insights のスコアの改善

35 views
Skip to first unread message

バンナイシノブ

unread,
Mar 17, 2018, 1:06:23 AM3/17/18
to pagespeed-insights-discuss
初めて投稿いたします。
PageSpeed Insights の質問ですが以前はスコアが表示されていましたが今回試したところ実際のデーターは習得できませんでしたの表示が出てしまっていますので修正したいと思いますが何を修正すればよろしいのでしょうか?
https://la-coeur.jp/
ワードプレスでテーマから作っております。

Nhat Minh

unread,
Mar 17, 2018, 8:53:07 PM3/17/18
to pagespeed-insights-discuss
hi, you can edit you code on website?

Vào 12:06:23 UTC+7 Thứ Bảy, ngày 17 tháng 3 năm 2018, バンナイシノブ đã viết:
Tôi sẽ đăng lần đầu tiên.
PageSpeed Insights hỏi bạn, nhưng trước đó cân bằng tỷ số, nhưng được hiển thị Toko cố gắng lần này đã đi ra hiển thị không thể làm chủ được bằng phương pháp lọc dữ liệu thực tế Bạn có chắc muốn Nếu bạn sửa đổi bất cứ điều gì, nhưng tôi muốn để sửa chữa vì nó the'll xuất hiện?
https://la-coeur.jp/ Chúng tôi
làm cho nó từ chủ đề bằng wordpress.

Nhat Minh

unread,
Mar 17, 2018, 8:55:34 PM3/17/18
to pagespeed-insights-discuss
move all you javascript and css on header ( <head> you script + css </head> ) to before end body ( </body> )

バンナイシノブ

unread,
Mar 18, 2018, 7:50:30 AM3/18/18
to pagespeed-insights-discuss
ありがとうございます。

英語は分かりませんので理解しづらいのですが


javascript and css on header ( <head> you script + css </head> ) to before end body

とは
headerのなかの javascriptとCSSをbodyの前に持ってくるということですね!

日本語の質問をご丁寧に理解してくださり有難いです。

Message has been deleted

Nhat Minh

unread,
Mar 18, 2018, 11:11:44 AM3/18/18
to pagespeed-insights-discuss
hi. i think i can help you. but i can access you host file. can i use teamview remote to you pc?
My facebook https://www.facebook.com/nhatminh.dev

Vào 19:58:20 UTC+7 Chủ Nhật, ngày 18 tháng 3 năm 2018, バンナイシノブ đã viết:
<!DOCTYPE html>
<html <?php language_attributes(); //html要素のlang属性を出力 ?>>
<head>
    <meta charset="<?php bloginfo( 'charset' ); //文字エンコーディング情報を出力 ?>">
  <title><?php wp_title( '|', true, 'right' ); //ページタイトルを出力 ?><?php bloginfo('name'); //サイト名を表示 ?></title>
   <link rel="stylesheet" href="<?php echo get_template_directory_uri(); //使用中テーマディレクトリのURLを出力 ?>/css/normalize.css">
  <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); //使用中テーマのスタイルシートURLを出力 ?>">
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); //ピングバックURLを出力 ?>" />
<link rel="alternate" hreflang="ja" href="https://la-coeur.jp/" />
<meta name="referrer" content="unsafe-url">
  <?php wp_head(); //wp_headはテーマの</head>タグ直前に必ず挿入します ?>
<meta name="google-site-verification" content="M1lbGAkScz7sd1un5L8eBWUez8uAJkV1yNjsfMNmwrA" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
<title>仙川の美容室La.COEUR(ラクール</title>
<meta name="description" content="仙川の美容室La.COEUR(ラクール)公式ホームページです。調布にある仙川の美容院、新規20%OFFです。赤ちゃんやお子様連れでも気兼ね無く。縮毛矯正、カラー、ヘナ、トリートメントなどオーガニック系な薬剤を使った美容院の紹介。ヘナの種類が豊富な美容室ですので是非お越しください。" />
<meta name="keywords" content="仙川,美容院,美容室,ヘナ,縮毛矯正,トリートメント,調布,狛江,つつじヶ丘" />
<?php if(1==2 && is_single() ): ?>
    <?php if( have_posts() ): ?>
        <?php while( have_posts() ): the_post(); ?>
            <link rel="alternate" hreflang="ja" href="https://la-coeur.jp/"><?php the_permalink(); ?>">
        <?php endwhile; ?>
    <?php endif; ?>
<?php elseif(1==2 && is_home() ): ?>
    <link rel="alternate" hreflang="ja" href="https://la-coeur.jp/"><?php echo home_url(); ?>">
<?php endif; ?>
</head>
<body <?php body_class(); //bodyタグにページの種類に応じたクラス名を与える ?>>
  <header>
<!--   <div id="header-image"><h1>仙川の美容室</h1><div id="logo">
      
  </div><p><img src="<?php echo get_template_directory_uri(); ?>/images/tttp.png" alt="仙川美容院のイメージ画像"></p></div>
-->
<div><?php echo do_shortcode("[metaslider id=208]"); ?></div>
    <div id="logo">
     <img src="<?php echo get_template_directory_uri(); ?>/images/lacoeur.jpg" alt="仙川美容院のイメージ画像">
    </div>
    <nav>
      <ul>
        <li><a href="<?php echo home_url();?>//">仙川美容室</a></li>
        <li><a href="<?php echo home_url();?>/menu/">メニュー</a></li>
        <li><a href="<?php echo home_url();?>/hena/">ヘナ</a></li>
        <li><a href="<?php echo home_url();?>/treatment/">トリートメント</a></li>
        <li><a href="<?php echo home_url();?>/catalog/">ヘアカタログ</a></li>
        <li><a href="<?php echo home_url();?>/contact/">お問い合わせ</a></li>
        <li><a href="<?php echo home_url();?>/post-all/">髪の悩み</a></li>
      </ul>
    </nav>
  </header>
    
  <!-- ここからパンくずナビ -->
  <div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/">
    <?php if(function_exists('bcn_display'))
    {
        bcn_display();
    }?>
  </div>
<!-- パンくずナビここまで -->
<div id="content" class="clearfix">
  
  <meta name="viewport"
 content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
 <meta name="format-detection" content="telephone=no">
 <link media="only screen and (max-device-width:480px)"
 href="smart.css" type="text/css" rel="stylesheet" />
 <link media="screen and (min-device-width:481px)" href="design.css"
 type="text/css" rel="stylesheet" />
 <!--[if IE]>
 <link href="design.css" type="text/css" rel="stylesheet" />
 <![endif]-->

<?php if ( is_mobile() ) : ?>
<a class="tel" href="tel:0333078308">仙川美容室La.COEUR・電話でのお問い合わせはこちら</a>
<?php else: ?>
<?php endif; ?>

<?php if( is_single() ): ?>
    <?php if( have_posts() ): ?>
        <?php while( have_posts() ): the_post(); ?>
            <link rel="alternate" hreflang="ja" href="<?php the_permalink(); ?>">
        <?php endwhile; ?>
    <?php endif; ?>
<?php elseif( is_home() ): ?>
    <link rel="alternate" hreflang="ja" href="<?php echo home_url(); ?>">
<?php endif; ?>


2018年3月18日日曜日 20時50分30秒 UTC+9 バンナイシノブ:

Rick Steinwand

unread,
Mar 19, 2018, 1:34:20 PM3/19/18
to pagespeed-insights-discuss
It's a bad idea to move css to end body. javascript - yes. Css - no.

バンナイシノブ

unread,
Mar 20, 2018, 10:06:11 AM3/20/18
to pagespeed-insights-discuss
ありがとうございます

normalize.css を排除しました

2018年3月20日火曜日 2時34分20秒 UTC+9 Rick Steinwand:
Reply all
Reply to author
Forward
0 new messages