• Kyle Milka's avatar
    [NTP] Initiate server-side resource requests earlier · ed15ce53
    Kyle Milka authored
    Previously requests for promos and the OGB were not sent until
    the NTP had almost finished loading. Instead start these requests
    when the request for the main HTML page is received.
    
    With this change promos and the OBG will appear along with search
    suggestions and the most visited tiles if they're available (which
    is now fairly likely). Otherwise they will appear once ready.
    
    Also removes a console error when the OGB failed to load.
    
    Bug: 770640
    Change-Id: Iff7a29a002325853115678f12c89c29869c076e5
    Reviewed-on: https://chromium-review.googlesource.com/c/1476148
    Commit-Queue: Kyle Milka <kmilka@chromium.org>
    Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#636345}
    ed15ce53
local_ntp.js 43.2 KB