How to include external Javascript in GWT offline application -
i have gwt (well, gxt) application uses external javascript library add together functionality app. application must work offline, too, , herein lies problem.
i aware adding files public folder create them accessible gwt app, not work in case of offline use. gwt compiles app create available offline without problem, doesn't include external javascript library.
so, whenever work within application , reach point said library needed, browser effort request because library hasn't been loaded yet , doesn't remain in cache of browser reliably.
is there way add together library app cached gwt app? library consists of several folders, js files, images, css, etc. thought dynamically create appcache manifest dumps files in browser cache.. in case i'm scared of breaking gwt offline functionality.
yes can generate manifest @ compile time. utilize linker extends com.google.gwt.core.ext.linker.abstractlinker.
see illustration this illustration manifest linker or see writing gwt linker or see this stackoverflow thread
i include google fonts , produce manifest include files specific language permutation.
javascript gwt browser-cache html5-appcache
No comments:
Post a Comment