{"id":414,"date":"2019-08-21T10:12:58","date_gmt":"2019-08-21T10:12:58","guid":{"rendered":"http:\/\/loftocean.com\/doc\/loftloader\/?page_id=414"},"modified":"2019-08-21T10:20:43","modified_gmt":"2019-08-21T10:20:43","slug":"increase-minimum-load-time","status":"publish","type":"page","link":"https:\/\/loftocean.com\/doc\/loftloader\/minimum-load-time\/increase-minimum-load-time\/","title":{"rendered":"Increase Minimum Load Time"},"content":{"rendered":"<p>By default, the maximum value of the &#8220;Minimum Load Time&#8221; option is 10 seconds. But sometimes users may want to set a minimum load time of more than 10 seconds. For now, you can change the limitation by modifying the plugin code. This is easy, you just need to change one value.<\/p>\n<p>Please follow the instructions below.<\/p>\n<hr \/>\n<h4>If you only need to change the &#8220;Minimum Load Time&#8221; limitation of a preloader shortcode:<\/h4>\n<p>If you have enabled &#8220;<strong>Any Page Extension<\/strong>&#8221; and insert a preloader shortcode to a page\/post, and you want to change the minimum load time of this particular page&#8217;s preloader to a value of 20 seconds or more, then you just need to edit the shortcode.<\/p>\n<p>Please go to that page, find the <strong>&#8220;LoftLoader Pro Any Page Shortcode&#8221;<\/strong> box, and then find &#8220;<span style=\"color: blue;\">loftloader_pro_load_time=xx<\/span>&#8220;, then change the value, for example, you can change it to &#8220;20.0&#8221; for 20 seconds. Please see the screenshot below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-417\" src=\"http:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-in-shortcocde.png\" alt=\"\" width=\"1596\" height=\"644\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-in-shortcocde.png 1596w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-in-shortcocde-300x121.png 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-in-shortcocde-768x310.png 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-in-shortcocde-1024x413.png 1024w\" sizes=\"auto, (max-width: 1596px) 100vw, 1596px\" \/><\/p>\n<hr \/>\n<h4>If you need to change the &#8220;Minimum Load Time&#8221; limitation in the settings panel:<\/h4>\n<ol>\n<li>You will need to login into your site via FTP. If you don\u2019t know how to do it, please search on Google, or contact your hosting provider.<\/li>\n<li>Then please get into the folder of LoftLoader Pro on your site, and find the php file you will need to modify: <strong>&#8220;more.php&#8221;<\/strong>. The path should be: &#8220;<span style=\"color: blue;\">(your site root)\/wp-content\/plugins\/loftloader-pro\/inc\/customize\/configs<\/span>&#8221; Please see this screenshot as reference:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-415\" src=\"http:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-5.46.40-pm.png\" alt=\"\" width=\"1364\" height=\"548\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-5.46.40-pm.png 1364w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-5.46.40-pm-300x121.png 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-5.46.40-pm-768x309.png 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-5.46.40-pm-1024x411.png 1024w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/li>\n<li>Please edit the php file in a text editor.<\/li>\n<li>Please go to line 123 to find the paragraph of &#8220;Minimum Load Time&#8221;, then change value of the &#8220;data-max&#8221;. The default value is &#8220;10&#8221;, you can change it to &#8220;50&#8221; for 50 seconds. Please see this screenshot as reference:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-416\" src=\"http:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-max-value.png\" alt=\"\" width=\"2132\" height=\"594\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-max-value.png 2132w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-max-value-300x84.png 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-max-value-768x214.png 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/minimum-load-time-max-value-1024x285.png 1024w\" sizes=\"auto, (max-width: 2132px) 100vw, 2132px\" \/><\/li>\n<li>Save the modified php file.<\/li>\n<li>Then please log into your website and open the setting panel of LoftLoader Pro, you will see the limitation of &#8220;Minimum Load Time&#8221; changes. You can change the load time to more than 10 seconds.<\/li>\n<\/ol>\n<hr \/>\n<p><strong>Please note:<\/strong><\/p>\n<ul>\n<li>If you have modified the plugin&#8217;s code, then every time you update the plugin, you will need to modify the code again because any code customisation will be lost after updating the plugin.<\/li>\n<li>If you set a very long loading time, it might cause some animation effects to not be smooth, especially the loading animation of the progress bar. Please use it carefully.<\/li>\n<\/ul>\n<hr \/>\n<h4>If you need to hide the loading screen close button:<\/h4>\n<p>Please add the following custom CSS to your website to hide the close button (via Customizer &gt; Additional CSS):<\/p>\n<pre><code>\r\n#loftloader-wrapper .loader-close-button {\r\n    display: none;\r\n}\r\n<\/code><\/pre>\n<p>Please check the following screenshot for reference:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-418\" src=\"http:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-6.12.13-pm.png\" alt=\"\" width=\"300\" height=\"702\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-6.12.13-pm.png 590w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-6.12.13-pm-128x300.png 128w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2019\/08\/Screen-Shot-2019-08-21-at-6.12.13-pm-438x1024.png 438w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, the maximum value of the &#8220;Minimum Load Time&#8221; option is 10 seconds. But sometimes users may want to set a minimum load time of more than 10 seconds. For now, you can change the limitation by modifying the plugin code. This is easy, you just need to change one value. Please follow the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":107,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-414","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/comments?post=414"}],"version-history":[{"count":5,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/414\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/414\/revisions\/425"}],"up":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/107"}],"wp:attachment":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/media?parent=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}