• Hordur Freyr Yngvason's avatar
    Use a dynamic loader for window.gapi · cb402ffd
    Hordur Freyr Yngvason authored
    This MR swaps out an implicit dependency on window.gapi for a lazy
    loader using a script tag designed around the realities of how
    gapi needs to be loaded.
    
    Previously, we had an implicit global dependency on gapi, relying on a
    DOMContentLoaded event listener in an entirely different module. This
    was brittle and held back internal efforts to remove dependencies on the
    DOMContentLoaded event.
    
    See https://gitlab.com/gitlab-org/gitlab/-/issues/284997
    cb402ffd
init_create_cluster.js 1.01 KB