<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Astro | kinoblog 初心者エンジニアブロガーの成長記録！</title>
	<atom:link href="https://kinonoteblog.com/tag/astro/feed" rel="self" type="application/rss+xml" />
	<link>https://kinonoteblog.com</link>
	<description></description>
	<lastBuildDate>Thu, 13 Jun 2024 04:28:16 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://websubhub.com/hub"/>
<atom:link rel="self" href="https://kinonoteblog.com/tag/astro/feed"/>
	<item>
		<title>Astroテーマで高速パフォーマンスとモダンな開発体験しよう！</title>
		<link>https://kinonoteblog.com/programming/astro-study</link>
					<comments>https://kinonoteblog.com/programming/astro-study#respond</comments>
		
		<dc:creator><![CDATA[kino]]></dc:creator>
		<pubDate>Tue, 11 Jun 2024 09:29:19 +0000</pubDate>
				<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[エンジニア]]></category>
		<category><![CDATA[プログラマー]]></category>
		<category><![CDATA[体験談]]></category>
		<category><![CDATA[Astro]]></category>
		<category><![CDATA[pickup]]></category>
		<guid isPermaLink="false">https://kinonoteblog.com/?p=3053</guid>

					<description><![CDATA[<p>こんにちは、 キノ(@zB75pWavnhDTIxr)です。 &#160; 今回はAstroというJSフレームワークについて紹介したいと思います。 Astroは、最近になってできたフレームワークでReactやVueに感覚...</p>
<p>The post <a href="https://kinonoteblog.com/programming/astro-study">Astroテーマで高速パフォーマンスとモダンな開発体験しよう！</a> first appeared on <a href="https://kinonoteblog.com">kinoblog　初心者エンジニアブロガーの成長記録！</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>こんにちは、</p>
<p><span style="font-weight: 400;"><a style="text-decoration: none;" href="https://twitter.com/zB75pWavnhDTIxr" target="_blank" rel="noopener noreferrer">キノ(</a><a class="ProfileHeaderCard-screennameLink u-linkComplex js-nav" href="https://twitter.com/zB75pWavnhDTIxr"><span class="username u-dir" dir="ltr">@<b class="u-linkComplex-target">zB75pWavnhDTIxr</b></span></a><a style="text-decoration: none;" href="https://twitter.com/zB75pWavnhDTIxr">)</a></span>です。</p>
<p>&nbsp;</p>
<p>今回は<span style="font-weight: 400;">Astro</span>というJSフレームワークについて紹介したいと思います。</p>
<p><span style="font-weight: 400;">Astro</span>は、最近になってできたフレームワークで<span style="font-weight: 400;">ReactやVueに感覚的に近いと思います。</span></p>
<div class="voice cf r big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/08/agura_kutsurogu1_boy.png"><figcaption class="name">まなぶ君</figcaption></figure><div class="voicecomment">
<p>お、久々にプログラミングの記事？</p>
</div></div>
<div class="voice cf l big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/03/nigaoemaker.png"><figcaption class="name">キノ</figcaption></figure><div class="voicecomment">
<p>気になっちゃってね……。</p>
</div></div>

<h2><span style="font-weight: 400;">Astroのメリット</span></h2>
<div class="voice cf l big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/03/nigaoemaker.png"><figcaption class="name">キノ</figcaption></figure><div class="voicecomment">
<p><span style="font-weight: 400;">僕がAstroを気になっている１番の理由は、</span></p>
<p><span style="font-weight: 400;">『Astroは、スピード重視したウェブサイトを作ることに特化したJSフレームワーク』だからです。</span></p>
</div></div>
<p>&nbsp;</p>
<div class="voice cf r big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/08/agura_kutsurogu1_boy.png"><figcaption class="name">まなぶ君</figcaption></figure><div class="voicecomment">
<p><span style="font-weight: 400;">スピード重視？</span></p>
</div></div>
<p>&nbsp;</p>
<div class="voice cf l big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/03/nigaoemaker.png"><figcaption class="name">キノ</figcaption></figure><div class="voicecomment">
<p>まあ、いろいろ特色があるんですけど、ここでは<span style="font-weight: 400;">スピード重視で行かせてください。</span></p>
</div></div>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">スピード重視が何で良いか？</span></p>
<p><span style="font-weight: 400;"><span class="yellow">それはSEOに良い影響があるからです。</span></span></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">皆さんも経験があるはずです。</span></p>
<p><span style="font-weight: 400;">スマホ（あるいはパソコン）で見たいと思ったページが重たいと見たくなくなる……。</span></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">以前、僕が見た記事にはユーザーが『遅い』と感じたページの滞在時間は1~2秒ほどだそうです。</span></p>
<p><a href="https://webtan.impress.co.jp/e/2010/04/27/7848" target="_blank" rel="noopener noreferrer">ページ表示2秒でユーザーはイライラし始め、3分の1が「もういいや」となる</a></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">短いですね。</span></p>
<p><span style="font-weight: 400;">滞在時間はSEOに反映される重要な項目なので、</span></p>
<p><span style="font-weight: 400;">僕らエンジニアはウェブサイトのパフォーマンスを上げたい時、なんとかして軽くしたいんです。</span></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">内部修正して、要らないコードを削除したり（リファクタリングといいます）、もしもページに画像が使われているのなら、その画像を軽くするとか。</span></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">AstroはNext.jsよりも速いということで（スゴイ）、なんでそんなに速いのかカラクリを説明しているページがありました。</span></p>
<p>&nbsp;</p>
<blockquote><p><span style="font-weight: 400;">『</span><span style="font-weight: 400;">コンポーネントのフロントマターの内部にJavaScriptコードを含められますが、それらはすべて、ユーザーのブラウザに送られる最終的なページからは取り除かれます。その結果、デフォルトではJavaScriptが含められることはなく、より高速なサイトが実現します。</span><span style="font-weight: 400;">』</span></p></blockquote>
<p><a href="https://docs.astro.build/ja/basics/astro-components/" target="_blank" rel="noopener noreferrer">Astro公式　コンポーネント</a></p>
<h2><span style="font-weight: 400;">Astroテーマを使用してポートフォリオサイトを作ってみた</span></h2>
<img decoding="async" class="alignnone wp-image-3103" src="https://kinonoteblog.com/wp-content/uploads/2024/06/スクリーンショット-2024-06-10-120810.jpg" alt="ポートフォリオサイト" width="600" height="291" srcset="https://kinonoteblog.com/wp-content/uploads/2024/06/スクリーンショット-2024-06-10-120810.jpg 1838w, https://kinonoteblog.com/wp-content/uploads/2024/06/スクリーンショット-2024-06-10-120810-300x146.jpg 300w, https://kinonoteblog.com/wp-content/uploads/2024/06/スクリーンショット-2024-06-10-120810-1024x497.jpg 1024w, https://kinonoteblog.com/wp-content/uploads/2024/06/スクリーンショット-2024-06-10-120810-768x373.jpg 768w, https://kinonoteblog.com/wp-content/uploads/2024/06/スクリーンショット-2024-06-10-120810-1536x745.jpg 1536w" sizes="(max-width: 600px) 100vw, 600px" />
<p><span style="font-weight: 400;">要するに、</span><span style="font-weight: 400;">astroは公開時に自動的に元々あったJavaScriptを排除します。</span></p>
<p><span style="font-weight: 400;">その代わりに、その場で必要なHTMLとCSSを生成して、それを公開します。</span></p>
<div class="voice cf r big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/06/nayamu_boy2.png"><figcaption class="name">まなぶ君</figcaption></figure><div class="voicecomment"><span style="font-weight: 400;">そんなのことして、機能は大丈夫なの？</span></p>
</div></div>
<div class="voice cf l big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/03/nigaoemaker.png"><figcaption class="name">キノ</figcaption></figure><div class="voicecomment">
<p><span style="font-weight: 400;">大丈夫です！百聞は一見にしかず！</span></p>
<p><span style="font-weight: 400;">どうです！この動くルフィを！！</span></p>
</div></div>
<p><a href="https://kino-astro.pages.dev/" target="_blank" rel="noopener noreferrer"><span style="font-weight: 400;">Astroのポートフォリオサイト</span></a></p>
<p><span style="font-weight: 400;">Astroでポートフォリオサイトを作ってみました。</span></p>
<p><span style="font-weight: 400;">ルフィにJavascriptをかけてやったところ、開発時と公開時どちらも同じ挙動をしています。<br />
</span></p>
<p>まあ、正直<span style="font-weight: 400;">ルフィにJavascriptかけただけでは、ReactやVue、Next.jsと同じですけどね。</span></p>
<h2><span style="font-weight: 400;">Astroテーマをダウンロードしてみよう</span></h2>
<p>&nbsp;</p>
<p><a href="https://astro.build/" target="_blank" rel="noopener noreferrer">Astro公式</a>にいって『Resources』の『Themes』をクリック</p>
<img decoding="async" class="alignnone wp-image-3076" src="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h01_57.jpg" alt="" width="600" height="290" srcset="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h01_57.jpg 1920w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h01_57-300x145.jpg 300w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h01_57-1024x495.jpg 1024w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h01_57-768x371.jpg 768w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h01_57-1536x742.jpg 1536w" sizes="(max-width: 600px) 100vw, 600px" />
<p>適当なfreeテーマを選んでください。（僕はAstroshipを選びました）</p>
<img decoding="async" class="alignnone wp-image-3077" src="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h03_46.jpg" alt="Astro公式" width="600" height="290" srcset="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h03_46.jpg 1920w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h03_46-300x145.jpg 300w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h03_46-1024x495.jpg 1024w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h03_46-768x371.jpg 768w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_13h03_46-1536x742.jpg 1536w" sizes="(max-width: 600px) 100vw, 600px" />
<img decoding="async" class="alignnone wp-image-3078" src="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h01_13.png" alt="Astro公式" width="600" height="271" srcset="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h01_13.png 1890w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h01_13-300x136.png 300w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h01_13-1024x463.png 1024w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h01_13-768x347.png 768w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h01_13-1536x694.png 1536w" sizes="(max-width: 600px) 100vw, 600px" />
<img decoding="async" class="alignnone wp-image-3082" src="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h24_39.png" alt="ひな形" width="600" height="249" srcset="https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h24_39.png 1129w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h24_39-300x125.png 300w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h24_39-1024x425.png 1024w, https://kinonoteblog.com/wp-content/uploads/2024/06/2024-06-10_15h24_39-768x319.png 768w" sizes="(max-width: 600px) 100vw, 600px" />
<p>&nbsp;</p>
<p>vsコードかまたはWindowsならコマンドプロンプト、imacならターミナルを開いて、</p>
<p>管理しやすいように、cd desktopに移動して</p>
<div class="voice cf l big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/03/nigaoemaker.png"><figcaption class="name">キノ</figcaption></figure><div class="voicecomment">
<p>慣れない黒い画面に惑わされずに、<br />
git clone (githubで取ってきたURL)を打てばひな形が完成です！</p>
</div></div>
<h2>終わりに</h2>
<h3>まとめ</h3>
<div class="c_box green_box type_normal">
<ul>
<li><span style="font-weight: 400;">スピード重視したウェブサイトを作ることに特化したJSフレームワーク</span></li>
<li>SEO向き</li>
<li><span style="font-weight: 400;">ReactやVue、Next.jsに慣れているなら、学習コストが安い</span></li>
</ul>
</div>
<p>今日は<span style="font-weight: 400;">Astro</span>の魅力について語っていきました。</p>
<p>まだ後発だから、<span style="font-weight: 400;">ReactやVueより</span>リファレンスとか資料が少ないですね</p>
<p><span style="font-weight: 400;">Astroはまだまだ魅力がありますので、<a href="https://astro.build/" target="_blank" rel="noopener noreferrer">Astro公式</a></span></p>
<p>勉強頑張っていきたいです！</p>
<div class="voice cf l big"><figure class="icon"><img decoding="async" src="https://kinonoteblog.com/wp-content/uploads/2019/03/nigaoemaker.png"><figcaption class="name">キノ</figcaption></figure><div class="voicecomment">
<p>お疲れ様でした！</p>
</div></div>
<p>では、また</p>
<p>ここまで見てくれてありがとうございました。</p>
<p>&nbsp;</p>
<p>こちらもおすすめ↓</p>
<div class="related_article cf"><a href="https://kinonoteblog.com/blog/bloghacks-review"><figure class="eyecatch thum"><img decoding="async" width="486" height="290" src="https://kinonoteblog.com/wp-content/uploads/2019/03/The-eye-should-learn-to-listen-before-it-looks.のコピー-1-486x290.jpg" class="attachment-home-thum size-home-thum wp-post-image" alt="" /></figure><div class="meta inbox"><p class="ttl">【体験談】ブログ初心者がBlog Hacksをレビュー【最初の目標は月20万！？】</p><span class="date gf">2019年3月12日</span></div></a></div>
<div class="related_article cf"><a href="https://kinonoteblog.com/programming/skillhacks-review"><figure class="eyecatch thum"><img decoding="async" width="486" height="290" src="https://kinonoteblog.com/wp-content/uploads/2019/05/The-eye-should-learn-to-listen-before-it-looks.のコピーのコピー-2-486x290.jpg" class="attachment-home-thum size-home-thum wp-post-image" alt="Skill Hacks　評判" /></figure><div class="meta inbox"><p class="ttl">【体験談】エンジニア初心者がSkill Hacks（スキルハックス）をレビュー【自走可能】</p><span class="date gf">2019年5月5日</span></div></a></div><p>The post <a href="https://kinonoteblog.com/programming/astro-study">Astroテーマで高速パフォーマンスとモダンな開発体験しよう！</a> first appeared on <a href="https://kinonoteblog.com">kinoblog　初心者エンジニアブロガーの成長記録！</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://kinonoteblog.com/programming/astro-study/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
