{"id":1242,"date":"2021-05-20T08:05:44","date_gmt":"2021-05-20T08:05:44","guid":{"rendered":"https:\/\/pwa-for-wp.com\/docs\/?post_type=ht_kb&#038;p=1242"},"modified":"2022-05-10T09:58:26","modified_gmt":"2022-05-10T09:58:26","slug":"add-preloader-on-your-website-with-pwa","status":"publish","type":"ht_kb","link":"https:\/\/pwa-for-wp.com\/docs\/article\/add-preloader-on-your-website-with-pwa\/","title":{"rendered":"Add PreLoader on your website with PWA"},"content":{"rendered":"\n<p>By using this Loader feature you can select loader feature. users wait for a brief moment for all the data and pages to load. In moments like that, you need something to get the user&#8217;s attention and keep them on the site long enough for all the content to load. One way to do that is by adding an eye-catching loading to the site to keep the users entertained while they are waiting for the rest of the site to load.<\/p>\n\n\n\n<p>It\u2019s pretty easy for you to Loader feature with PWA here are the steps:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> First  Install the <strong><a href=\"https:\/\/wordpress.org\/plugins\/pwa-for-wp\/\">PWA for WP &amp; AMP<\/a>&nbsp;<\/strong>plugin. <\/p>\n\n\n\n<p><strong>Step 2: <\/strong>After Installing the plugin click on the&nbsp;<strong>WordPress Dashboard<\/strong>&nbsp;-&gt; Navigate to&nbsp;<strong>PWA<\/strong>&nbsp;option -&gt;Once you click on <strong>Settings <\/strong>links it will redirect to the <strong>Features <\/strong>option here enable \u201c<strong>Loader<\/strong>\u201d option. Click on the \u201c<strong>gear<\/strong>\u201d icon like below the screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-1024x429.png\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-1024x429.png 1024w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-300x126.png 300w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-768x322.png 768w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-50x21.png 50w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-60x25.png 60w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23-100x42.png 100w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/23.png 1088w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 3 \u2013&nbsp;<\/strong>Once you click on the gear icon you can access the Settings page.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Loader:<\/strong>&nbsp;Check this \u201c<strong>Loader<\/strong>\u201d option.This helps you to show a loading icon on page or post load.<\/li><li><strong>Loader color:<\/strong>&nbsp;By using this option you can change the icon color of loader.<\/li><li><strong>Loader background color:<\/strong> In this field, you can change the background color of loader<\/li><li><strong>Loading enable on:<\/strong> Wher you want to display loader here is three options Desktop, Mobile and Admin as per you requiremt you can select.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"598\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/11.png\" alt=\"\" class=\"wp-image-1243\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/11.png 760w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/11-300x236.png 300w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/11-50x39.png 50w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/11-60x47.png 60w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/11-100x79.png 100w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>The Output of the Loader feature in PWA<\/strong><\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"553\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/22.png\" alt=\"\" class=\"wp-image-1246\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/22.png 341w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/22-185x300.png 185w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/22-31x50.png 31w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/22-37x60.png 37w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2021\/05\/22-62x100.png 62w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions&nbsp;Just contact us&nbsp;<strong><a href=\"http:\/\/pwa-for-wp.com\/contact-us\/\">here<\/a>&nbsp;<\/strong>and we are always available for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By using this Loader feature you can select loader feature. users wait for a brief moment for all the data and pages to load. In moments like that, you need something to get the user&#8217;s attention and keep them on the site long enough for all the content to load&#8230;.<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[6],"ht-kb-tag":[],"class_list":["post-1242","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-how-to"],"_links":{"self":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/1242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/comments?post=1242"}],"version-history":[{"count":6,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/1242\/revisions"}],"predecessor-version":[{"id":1481,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/1242\/revisions\/1481"}],"wp:attachment":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/media?parent=1242"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=1242"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}