JET.js support of asynchronous loading
The JET API does not appear to be designed to handle HTML 5 [asynchronous script loading][1]. For example calls like `JET.onload()` will clearly fail as `JET` will not exist until the API has loaded. What other caveats are there with JET.js? Further references of note: -
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script -
http://ie.microsoft.com/testdrive/Performance/AsyncScripts/Default.html -
https://support.google.com/adsense/answer/3221666?hl=en [1]:
http://www.w3.org/TR/html5/scripting-1.html#attr-script-async
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script -
http://ie.microsoft.com/testdrive/Performance/AsyncScripts/Default.html -
https://support.google.com/adsense/answer/3221666?hl=en [1]:
http://www.w3.org/TR/html5/scripting-1.html#attr-script-async
Tagged:
1
Best Answer
-
Here's async support, add the following to JET.js (to be improved)
(function(){
var w=window,a=w.jet.q,b;for(b=0;b
hello eikon0
Answers
-
What is the use case for this?0
-
@Evgeny as per the Google answers: "offers improved web latency and a better user experience for your site’s visitors. The advantage of the asynchronous code is that it's guaranteed never to get in the way of other parts of your web page loading."0
-
Steve, I do understand why people use async script loading. I am using JET for some level of Eikon integration in one of my projects. The script loads seamlessly: my 3000+ lines of JS alongside JET. When you are working with Eikon, don't you want to work in the controlled sync environment anyway?0
-
ported to external portal0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛