Fabrik/fabrik — Issue #182: Fabrik.liveSite needs setting earlier in page load
Author: cheesegrits
Created: 2012-02-26 02:02:35+00:00
State: open

See this thread:

http://fabrikar.com/forums/showthread.php?p=133409#post133409

The problem is, Fabrik.liveSite is set in a head.ready() call, at the same time the fabrik.framework.loaded event is fired. In IE, this works, as that head.ready() seems to run first. But in other browsers, the ordering of the head.ready() events seems to be more random, so, for instance, the map viz sets up the map in head.ready() which is running BEFORE the one that fires fabrik.framework.loaded and sets Fabrik.liveSite. So things like cluster marker graphic marker URL's don't get set right.

I've seen this in other places, where the URL's show up with 'undefined' in the middle, so it's not just a issue with the map viz.

I thought about changing the map viz to use fabrik.framework.loaded instead of head.ready(), but that would just break it in IE, where it's currently working, as it would be running after fabrik.framework.loaded is fired, so would never see it.

So we need to find a way of setting Fabrik.liveSite right at the start of page load.

-- hugh