Hi, is tehre any news on the safari reload bug? Maybe a workaround? Mapstraction is sometimes not displayed on reload... regards Henrik
Hi Henrick, the problem is webkit (underlying rendering library in Safari) loads the libraries out of order (well it loads them as fast as it can and moves on to the next thing, and the next thing tries to use a library that isn''t there yet) The "correct" solution would be some sort of deferment until relevant libraries have been loaded which isn''t simple to implement. The workaround we use is to merge all the mxn files we need into a single file on the server side and our html requests that single js file. It works perfectly. good luck, Ed 2010/5/19 Henrik Genssen <henrik.genssen at miadi.net>:> Hi, > > is tehre any news on the safari reload bug? > Maybe a workaround? > > Mapstraction is sometimes not displayed on reload... > > regards > > Henrik > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >
Loading the files manually also works, E.g.> ''/mapstraction/source/mxn.js'' > ''/mapstraction/source/mxn.core.js'' > ''/mapstraction/source/mxn.''. $provider .''.core.js'' > ''/mapstraction.drupal.js''This is related to http://code.google.com/p/mapstraction/issues/detail?id=34. On May 19, 2010, at 7:41 AM, Ed Freyfogle wrote:> the problem is webkit (underlying rendering library in Safari) loads > the libraries out of order (well it loads them as fast as it can and > moves on to the next thing, and the next thing tries to use a library > that isn''t there yet) > > The "correct" solution would be some sort of deferment until relevant > libraries have been loaded which isn''t simple to implement. > The workaround we use is to merge all the mxn files we need into a > single file on the server side and our html requests that single js > file. It works perfectly.Lev Tsypin _____________________ Level Online Strategy, LLC 503.342.8044 levelos.com | twitter.com/levelos
Do I really have to merge all files into one big (all mxn + google for google use) or do I not have to leave out some code doing the load job for the needed js files? Is there a docu for this? Why does e.g. JQuery not have this problem? yours Henrik>reply to message: >date: 19.05.2010 16:41:02 >from: "Ed Freyfogle" <edf at sloan.mit.edu> >to: "Henrik Genssen" <henrik.genssen at miadi.net> >subject: Re: [Mapstraction] Safari reload > >Hi Henrick, > >the problem is webkit (underlying rendering library in Safari) loads >the libraries out of order (well it loads them as fast as it can and >moves on to the next thing, and the next thing tries to use a library >that isn''t there yet) > >The "correct" solution would be some sort of deferment until relevant >libraries have been loaded which isn''t simple to implement. >The workaround we use is to merge all the mxn files we need into a >single file on the server side and our html requests that single js >file. It works perfectly. > >good luck, >Ed > > > > > >2010/5/19 Henrik Genssen <henrik.genssen at miadi.net>: >> Hi, >> >> is tehre any news on the safari reload bug? >> Maybe a workaround? >> >> Mapstraction is sometimes not displayed on reload... >> >> regards >> >> Henrik >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >
2010/5/28 Henrik Genssen <henrik.genssen at miadi.net>:> Do I really have to merge all files into one big (all mxn + google for google use) or do I not have to leave out > some code doing the load job for the needed js files? Is there a docu for this? >no. we do it like this 1. merge mxn and our custom code into a single .js in build 2. when serving the page a. include the merged file b. include google maps call (in our case v3) c. inside an onDomReady (or the jquery equivalent) create the mxn object and start using it. this ensures you don''t try to do anything w/ mxn until it has loaded works well for us.> Why does e.g. JQuery not have this problem? >jQuery is a single file. Or do you mean Jquery and jquery-ui, etc? Not sure but my guess is they have logic that waits until everything is loaded. good luck, Ed> yours > > Henrik > >>reply to message: >>date: 19.05.2010 16:41:02 >>from: "Ed Freyfogle" <edf at sloan.mit.edu> >>to: "Henrik Genssen" <henrik.genssen at miadi.net> >>subject: Re: [Mapstraction] Safari reload >> >>Hi Henrick, >> >>the problem is webkit (underlying rendering library in Safari) loads >>the libraries out of order (well it loads them as fast as it can and >>moves on to the next thing, and the next thing tries to use a library >>that isn''t there yet) >> >>The "correct" solution would be some sort of deferment until relevant >>libraries have been loaded which isn''t simple to implement. >>The workaround we use is to merge all the mxn files we need into a >>single file on the server side and our html requests that single js >>file. It works perfectly. >> >>good luck, >>Ed >> >> >> >> >> >>2010/5/19 Henrik Genssen <henrik.genssen at miadi.net>: >>> Hi, >>> >>> is tehre any news on the safari reload bug? >>> Maybe a workaround? >>> >>> Mapstraction is sometimes not displayed on reload... >>> >>> regards >>> >>> Henrik >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >> > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >
>jQuery is a single file. Or do you mean Jquery and jquery-ui, etc? Not >sure but my guess is they have logic that waits until everything is >loaded.yes, I meant jquery-ui...
I thought this issue had been fixed - are you using an older revision of mxn.js? If it''s still broken I''ll add an issue and have another look at it. Derek On 28 May 2010 17:45, Henrik Genssen <henrik.genssen at miadi.net> wrote:> >jQuery is a single file. Or do you mean Jquery and jquery-ui, etc? Not > >sure but my guess is they have logic that waits until everything is > >loaded. > > yes, I meant jquery-ui... > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-- Derek Fowler m. +44 (0) 7966 512 369 e. dezfowler at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100529/2877a0df/attachment-0001.htm>
yes, this is still a problem! I am using TRUNK. Henrik>reply to message: >date: 29.05.2010 21:31:30 >from: "Derek Fowler" <dezfowler at gmail.com> >to: mapstraction at lists.mapstraction.com >subject: Re: [Mapstraction] Safari reload > >I thought this issue had been fixed - are you using an older revision of >mxn.js? > >If it''s still broken I''ll add an issue and have another look at it. > >Derek > >On 28 May 2010 17:45, Henrik Genssen <henrik.genssen at miadi.net> wrote: > >> >jQuery is a single file. Or do you mean Jquery and jquery-ui, etc? Not >> >sure but my guess is they have logic that waits until everything is >> >loaded. >> >> yes, I meant jquery-ui... >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> > > > >-- >Derek Fowler >m. +44 (0) 7966 512 369 >e. dezfowler at gmail.com >