google / google/material-design-lite

MDL - Spinner and "Loading ..." Text

Open
#5,263 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
32.2k
Forks
4.9k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am using the code below to show the MDL spinner when the button is clicked, using the onclick JS function. The problem is however when you click on the button all you ever see if the words "Loading..." the spinner doesnt actually load. I tested cross browser (Chrome/IE) and appears consistent across browser.

Is this my coding approach or something else?

`

Next

function login_loading_spinner() {
document.getElementById("login").innerHTML = "<div class=\"mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active\"></div>";
}
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.