Page MenuHomePhabricator

EducationProgram: SpecialMyCourses "Did You Know" box flashes unstyled content
Closed, DeclinedPublic

Description

If you visit Special:MyCourses, the content of the Did You Know page loads initially just as it exists on the source page, taking up the full width of the screen and displacing/covering the activity feed. It takes a moment before it gets moved to the right in its own box.

The content should not appear until after the box is ready.


Version: unspecified
Severity: minor

Details

Reference
bz48313

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:25 AM
bzimport set Reference to bz48313.
bzimport added a subscriber: Unknown Object (MLST).

Resources need top loading

That is the bad solution. A nicer way to go about this is having the thing hidden initially and changing visibility with some JS when stuff has loaded.

(In reply to comment #2)

Resources need top loading

That is the bad solution. A nicer way to go about this is having the thing
hidden initially and changing visibility with some JS when stuff has loaded.

No.

If the box is entirely generated by javascript, make sure the associated stylesheet in the same module (ResourceLoader will load the styles before executing the script).

If the box is generated server-side, the associated stylesheet should be part of a module (not a separate module per se) that has position=top, and load it with addModules (not use addModuleStyles)

Reedy subscribed.

Extension is being removed and archived.