Page 1 of 1

Page Speed Test

PostPosted: Wed Apr 04, 2018 8:43 pm
by MtRoxx
It would be very nice if the base code created by panotour pro was optimized for the Google's page speed test: https://developers.google.com/speed/pagespeed/insights/

Re: Page Speed Test

PostPosted: Thu Apr 19, 2018 10:37 am
by benji33
The only speed gain possible is to minified the JavaScript methods into the HTML file for just a few octets gain.

The speed issue is the requirement of 2 JavaScript libraries. The first one is the YourTour.js file which contains the krpano viewer required for rendering. The second one can be if required by plugins the jQuery library.

Have you noticed others possible optimizations?

Re: Page Speed Test

PostPosted: Thu Apr 19, 2018 2:38 pm
by MtRoxx
Here is the line from the page speed test that I am wondering about.

Your page has 6 blocking script resources and 6 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.

Is it possible to break the required js to needed to run the code into separate js files or add it in line as suggested? Consider loading the smaller js for the requirements and a second one for actions needed for the jQuery later in the tour? All they are focusing on is the load - once it is loaded they do not care.

Re: Page Speed Test

PostPosted: Thu Apr 19, 2018 3:27 pm
by benji33
It will be possible but need a redesign of the css/js bundle into the generation script depending of the selected plugins.
So I understand your request and add it into the task list but it's a low priority task for us as the gain will be for less than few milliseconds (depending of the server serving speed).