Skip to content

Commit

Permalink
PromiseAll assets
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Feb 13, 2025
1 parent 59c44b9 commit 0694834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/neodigm55__v3_5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1684,16 +1684,16 @@ class NeodigmAgent {
}
if( rs?.assets ){ // Inject asset elements from manifest +CSS Font
rs.assets.forEach( ( aAst )=>{
if( aAst[0].toLowerCase() == "js" ) neodigmUtils.fAsyncJS( document, aAst[1] )
//if( aAst[0].toLowerCase() == "js" ) neodigmUtils.fAsyncJS( document, aAst[1] )

if( aAst[0].toLowerCase() == "css" ) neodigmUtils.fAsyncCSS( document, aAst[1] )
} )
/*

const prmAst = rs.assets.map( ( aAst )=>{
if( aAst[0].toLowerCase() == "js" ) return neodigmUtils.fPromiseJS( document, aAst[1] )
} )
await Promise.all( prmAst )
*/

}
neodigmUtils.fAsyncJS( this._d, neodigmOpt.API_baseURI + neodigmOpt.API_ver + "/wdgt/logic/" + sTkn + ".js" )
if( rs?.unistore_token ){ // var shared store - compressed
Expand Down

0 comments on commit 0694834

Please sign in to comment.