External link preventing loading of page

Hi megazoid

I’ve been testing with your solution and other code I had already and although I find yours shaves around 500ms from the loading time, I do not understand what is going on…

I assumed that it deferred the loading of the rates until the visitor entered some values in the widget, but then what is being loaded?

With this code I get the physical widget from some code I had already (not FX_rate) and I assume that the rates come from FX, but when?

This is the test page http://pintotours.net/Europe/Spain/WIDGET.html

Thanks

EDIT

The saving in time is good news, but what I was looking for was a way of NOT downloading any data unless it was requested by the visitor at a later time, as it is very unlikely that 1% of my visitors would use it anyway. So, all I need is for the widget to show (internal html/css) and get the code to import, only if necessary, the data.

The fact that the WebConsole shows some sort of download from FX-rate leaves me confused.

That solution does not prevent widget loading, but moves it to the end of queue so your page will not “freeze” on that widget during loading. If you want to load widget “on demand” then you should consider using more tricky solution, like the one from post #5.

1 Like

Thanks megazoid

I’m going to work on that. I’m already scratching my head trying to decide how to get the screen shot. Maybe Gimp

No doubt, I’ll be back!

There are many extensions for any browser to make and crop screenshots of the page.
Also, that picture doesn’t have to be screenshot exactly, it could look like a banner “Click here to use currency converter” or something like that. It’s up to you completely.

Hi magazoid

I’m half-way there but stuck on something basic: the image.

The #fake-image code has “momentarily” thrown me!

http://pintotours.net/TEST/FAKE.html

You have set http://pintotours.net/Pinto/widget.jpg as an image source but there is no such file

Blushes, blushes…

That would explain it, wouldn’t it…

It was there but with a different name.

Now it’s visible but not working. What have I done wrong?

Wrap JavaScript code that you have inserted at the bottom of page with <script> ... </script> tags

blushing again…

Right it’s working but not getting my code, and the widget is changing. (USD/EUR instead of EUR/GBP)

i guess that the first step would be to use the widget frame I already have,(rather than the screen shot) and apply the data to it. Do you follow me?

This is impossible, see post #4

1 Like

But if you look at http://pintotours.net/Europe/Spain/WIDGET.html I have the FX rates on a local widget frame, not their own which can be seen in most other pages e.g. http://pintotours.net/Oceania/Australia/Sydney.html

EDIT

In your code you designed a simple squarish box to act as a widget frame. I guess that what I need to do is to substiture that css code of yours by the one I already have for the widget, from which I got the screen shot.

Next, I cannot understand why when I clicj on this test page I get dollars when I changed your script to a different currency pair EUR/GBP

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.