Long initial load time

Q&A about the latest versions
Post Reply
gjc81
Posts: 6
Joined: Fri Feb 16, 2018 3:53 pm

Hi guys

I've got a lot of images loaded into the skin which has made it large resulting in a large load time is there a better way to do what I'm doing?

https://shuttermadness.co.uk/demo

Also since upgrading to v6 on mobile view the close button for the menus isn't in view but is in the right place on pc/mac. I'm scaling the menus down with a logic block to .5
gjc81
Posts: 6
Joined: Fri Feb 16, 2018 3:53 pm

The close button is in view for the downstairs restaurant menu but not in the rooms
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
The skin should not have any heavy files and there is no need.
You can use an external loader that can call the image as and when you needed it.
Have a look at the ht_image component and see how you can use it in your project.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
gjc81
Posts: 6
Joined: Fri Feb 16, 2018 3:53 pm

Thanks Hopki

I've used external loaders with all images and it's working as before now. I did try using external loaders in the first place but I didn't rename the images img_00 etc and I couldn't figure out how to do it looked into a gallery component that you did and seen my error 😁
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
The thing to know about external loader is if there is a URL in the loader that points to an image then that will get loaded on startup.
The trick with the gallery component was it had two external loaders, on that show image one and the other that preloaded image two.
The idea was you can have many images to show but rather than wait to load on request, the next image was preloaded.
What you could do is set the action "Images Ready" => set value => file path to image => external loader.
What this would do is after the pano has been loaded and ready to be viewed the the external loader will load the image in the background.
Images Ready is a V6 source action, in V5 it was called "Loaded"
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
gjc81
Posts: 6
Joined: Fri Feb 16, 2018 3:53 pm

thanks hopki

I've followed all of that and the tour now loads as fast as before. But when i upload the tour to my website the images won't display do i have to change the url? I did try changing to the url top the one on my sever but it didn't change anything. I haven't moved the gallery folder its still in the output folder on the server
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
The URL should remain the same, example if you have uploaded an "output" folder and inside this you have an images folder then the external loaders URL should just be the path to the image, images/xxxx.jpg.
The only thing that can change is once uploaded capitalisation becomes an issue.
So a file ending .JPG is not the same as .jpg.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
gjc81
Posts: 6
Joined: Fri Feb 16, 2018 3:53 pm

hi hopki

i still cant get the images to display once uploaded to wordpress i've attached some screen grabs to show you

one with my website and local host displayed and two of the file structure. I can't figure out what i've done wrong

i'm guessing my mistake is with the gallery part as i've got images in a scroll bar externally loaded in the folder gallery/thumbs/img_** and they are working the file path i'm using for the gallery is gallery/img_**

Image

Image

Image
Attachments
Screenshot 2018-03-31 01.17.30.png
Screenshot 2018-03-31 01.17.30.png (537.01 KiB) Viewed 2861 times
Screenshot 2018-03-31 01.17.16.png
Screenshot 2018-03-31 01.17.16.png (489.12 KiB) Viewed 2861 times
Screenshot 2018-03-31 01.15.06.png
Screenshot 2018-03-31 01.15.06.png (1.02 MiB) Viewed 2861 times
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Can you send your skin ?
If your using an external loader you should be using $(r) fro V6 and $r for V5 in front of the file path.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
gjc81
Posts: 6
Joined: Fri Feb 16, 2018 3:53 pm

perhaps that's what i'm doing wrong i've just got gallery/img_00.jpg etc. I've just deleted the gallery to start again to test if its something ive changed and it's still the same. I have external loaders for a scroll bar and they work fine which is strange but there's 24 images and only 15 show in the scroll bar for some reason.Heres the link to my skin theres still things unfinished in it though https://www.dropbox.com/s/xdw62dzu6hh8g ... .ggsk?dl=0
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Have a look at the ht_image hotspot, does this work?
This has the $r$hu placeholders to display in Wordpress.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply