Hi Alex, I searched a bit about this but didn't found nothing important. Since I don't have the time right now for this, we can postpone to get over again as we have some free time. What I saw is that document.write() is greatly demonized and nobody wants to ear from it ;). So maybe some new version of GCL and GCC should avoid it, or maybe we're using it in out compiler code and we should refactor some of the recommended codes. Anyway, time to archive for now, and revisit at a later time...
thanks Carlos El mar., 16 oct. 2018 a las 19:01, Alex Harui (<[email protected]>) escribió: > HI Carlos, > > That link explains why Google is generating warnings, but I was hoping you > would find a discussion about how users of Google Closure Library should > modify their code to get past this warning. I think the document write > calls are coming from GCL and not our code. Maybe newer versions of GCL > and GCC are needed or something like that. > > -Alex > > On 10/16/18, 9:43 AM, "Carlos Rovira" <[email protected]> wrote: > > Hi Alex, > > here [1] seems to have at the end some proposal solution. > > As you say maybe this is not urgent, since I didn't have in mind that > production is minified and all in one file... > > Maybe we can to try some solution when we have more time, so we can > defer > for now. > > [1] > > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.dareboost.com%2Fen%2F2016%2F09%2Favoid-using-document-write-scripts-injection%2F&data=02%7C01%7Caharui%40adobe.com%7Cd361611867004a070fe408d633866e17%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753049804926911&sdata=ftgyU9EKoesm0rawVe6%2Bv7LGV%2BdlRnsI1os6UkqKNRE%3D&reserved=0 > > El mar., 16 oct. 2018 a las 18:22, Alex Harui > (<[email protected]>) > escribió: > > > I haven't tried Chrome. Did you look to see if there is a discussion > > somewhere on the internet on how to address this? Or maybe it > doesn't > > matter as the production version probably doesn't write scripts. > > > > -Alex > > > > On 10/16/18, 2:40 AM, "Carlos Rovira" <[email protected]> > wrote: > > > > Hi, > > > > when running whatever Apache Royale app in debug mode I get > multiple > > traces > > like this: > > > > base.js:1167 [Violation] Avoid using document.write(). > > goog.writeScriptSrcNode_ @ base.js:1167 > > goog.writeScriptTag_ @ base.js:1241 > > goog.importScript_ @ base.js:951 > > (anonymous) @ base.js:1426 > > > > base.js:1167 [Violation] Parser was blocked due to > > document.write(<script>) > > goog.writeScriptSrcNode_ @ base.js:1167 > > goog.writeScriptTag_ @ base.js:1241 > > goog.importScript_ @ base.js:951 > > (anonymous) @ base.js:1426 > > > > base.js:1167 [Violation] Parser was blocked due to > > document.write(<script>) > > goog.writeScriptSrcNode_ @ base.js:1167 > > goog.writeScriptTag_ @ base.js:1241 > > goog.importScript_ @ base.js:951 > > (anonymous) @ base.js:1426 > > > > ... > > > > The app just works, but I was thinking if this could easily > fixed or is > > something we must live with it > > > > thanks > > > > -- > > Carlos Rovira > > > > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cd361611867004a070fe408d633866e17%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753049804926911&sdata=hYz0gpWcSoox1UbfR%2FXQjYGtIZZVgpizVL2GeQTGdXc%3D&reserved=0 > > > > > > > > -- > Carlos Rovira > > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cd361611867004a070fe408d633866e17%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753049804926911&sdata=hYz0gpWcSoox1UbfR%2FXQjYGtIZZVgpizVL2GeQTGdXc%3D&reserved=0 > > > -- Carlos Rovira http://about.me/carlosrovira
