Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom Linker modification to <module>.nocache.js artifact doesn't work in GWT 2.7.0 SDM #9149
If you use the Ecilpse Plugin/SDM Server in GWT 2.7.0, the .nocache.js file loaded by the project's main HTML page isn't the same file as that available to and potentially modified by any customer linkers present in the project. The "real" .nocache.js file is ultimately loaded, but only much later, after the main HTML page has already finished loading. Thus, if you modify the .nocache.js file to synchronously load other script files that are needed by scripts on the main HTML page located after the .nocache.js script tag, the dependent scripts will fail.
Without modifying the project's HTML, the only workaround at the moment is to directly run the CodeServer via bookmarklets, as was (I believe) the recommended standard approach in GWT 2.6.x. One simple solution would be to provide the capability to a project of modifying the "fake" .nocache.js artifact in the same way that a custom linker can modify the real one.
(Refiled to avoid multiple distracting "edit logs".)