Ok, my workaround is to add some kind of index number to log to javascript
console such as : console.log("29. Google map is ready"); I keep refreshing
until the number is changed. For now it's good enough but hopefully there's
a better solution in the future.

On Sat, Feb 7, 2015 at 11:24 AM, abangkis <abang...@gmail.com> wrote:

> Hi guys, another question about require js. So i experiment with creating
> a new source folder in eclipse by the name of requiresrc. Under that folder
> will reside the META-INF/modules/my_javascript.js file. This way eclipse
> will deploy the META-INF/modules folder to the classes module
> automatically. It worked.
>
> The problem is when i change my_javascript.js file content. The content
> doesn't get refreshed automatically. Hitting F5 and Shift-F5 doesn't change
> it too. But after a while (5-10 second) then the content will be changed
> automatically.
>
> Looking around i found this related thread
> http://www.wenda.io/questions/4211439/force-refresh-doesnt-work-for-head-js.html
> basically it says that F5 wouldn't work because of the dynamic script
> loading. So, does anyone have a trick with this kind of thing? Because I'm
> used of putting my js folder under WebApp folder and hitting refresh,
>  tapestry would pick up the new content. Restarting the app every time i
> change the js file would be a big pain.
>
> Thanks :)
>
> --
> http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
> twitter : @mreunionlabs @abangkis
> page : https://plus.google.com/104168782385184990771
>



-- 
http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
twitter : @mreunionlabs @abangkis
page : https://plus.google.com/104168782385184990771

Reply via email to