Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 20. Feb 2019, 17:27

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 8. Feb 2019, 20:59 
Offline

Joined: 18. Nov 2018, 21:40
Posts: 23
My page loads all the html first, then it clears the page and reloads again. Do you know why? When I disable the ai_external.js in the iFrame page it does not reload so it must be something in the settings?

Page: https://biofokus.no/narin2/

Code on iframe page:

Code:
<script>
var iframe_id = "narinbio";
var element_to_measure_offset = 30;
var updateIframeHeight = "true";
var resize_on_element_resize = "#frame-content"
var enable_responsive_iframe = "true"
var hide_page_until_loaded_external = "true";
var iframe_content_id = "frame-content";
var iframe_content_styles = "overflow:hidden";
</script>   
<script src="https://biofokus.no/wp-content/plugins/advanced-iframe/js/ai_external.js?vs=38"></script>


My config on parent page:

Code:
[advanced_iframe use_shortcode_attributes_only="true" src="https://narin.biofokus.no/indexbio_sa.lasso" id="narinbio" enable_responsive_iframe="true" enable_external_height_workaround="true" width="100%" height="800" url_forward_parameter="ALL" add_iframe_url_as_param="remote" scrolling="no"]


Top
 Profile  
 
PostPosted: 13. Feb 2019, 21:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11017
it is not loaded twice. I seems it is only hidden for a few moments.

can you add
hide_page_until_loaded_external="true"
to the shortcode. Because then the page is hidden until loaded.

Best, Michael


Top
 Profile  
 
PostPosted: 13. Feb 2019, 23:40 
Offline

Joined: 18. Nov 2018, 21:40
Posts: 23
Great, that shortcode hides the page before it is loaded.

But my biggest problem is on mobile. The page takes ages to load. In Chrome it sometimes does not load and in Firefox very very slow. When I remove the link to ai_external.js in the iframe, the page loads fast but of course does not fit in height since there is not ai_external.js. Do you have any idea why the page is so slow on mobile? I know it is a complicated page but now it is useless on mobile view.


Top
 Profile  
 
PostPosted: 14. Feb 2019, 00:05 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11017
I have maybe a idea. Because to measure your page I need to wrap your whole content into another wrapper.

Are you able to modify the page in the iframe? Can you add one div around everything?
Means you have a
<div id="iframe-content">...</div>
<div id="colorbox">..</div>
<div id="lightbox">...</div>

can you make this
<div id="wrapper">
<div id="iframe-content">...</div>
<div id="colorbox">..</div>
<div id="lightbox">...</div>
</div>

because maybe modifying the dom is really expensive especially on mobile....

Best, Michael


Top
 Profile  
 
PostPosted: 18. Feb 2019, 17:27 
Offline

Joined: 18. Nov 2018, 21:40
Posts: 23
Thanks I tried this but still the page will not load in Chrome on Android. Firefox is no problem. I will try to reset Chrome on my mobile. But it seems the page loads and then only displays a blank page.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
powered by phpbb | Datenschutz/ Privacy policy