Closed Bug 855128 Opened 7 years ago Closed 7 years ago

defer loading of persona

Categories

(bugzilla.mozilla.org Graveyard :: Extensions: Persona, defect)

Production
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clochix, Unassigned)

Details

Could we add a "defer" attribute on the script tag loading persona ?

Sometimes, login.persona.org is slow and the page wait several seconds for the script to load before displaying anything. We could maybe speed up the display by defering persona loading.
good idea, thanks!

Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.2/
modified extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl
Committed revision 8696.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Is there a risk that someone clicking the button quick enough will then find that nothing happens?

We should ask the Persona team for current best practice. And if login.persona.org is slow, we should report that to them as well!

Gerv
(In reply to Gervase Markham [:gerv] from comment #2)
> Is there a risk that someone clicking the button quick enough will then find
> that nothing happens?

no, the script executed before the document's DOMContentLoaded event.
Product: bugzilla.mozilla.org → bugzilla.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.