Skip to content

Noticeable lag between HTML and CSS/JS Loading #2362

@nguyenct

Description

@nguyenct
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.1.0
Node 6.9.1
npm 3.10.9
Operating System Windows 10
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ui-router
Client Tests Jasmine
DB None
Auth None

I've been comparing 3.8.0 and 4.1.0 of the generators.

After adding two routes and my own custom CSS for each, I notice:
With 3.8.0, on initial load of the app: the app loads and the user cannot tell when the CSS is loaded.
With 4.1.0, on initial load of the app: you see the HTML for a split second and then the CSS is applied.

I did not change anything else besides the main.html and main.scss and added a new route to another page with its own CSS file.

This is noticable on local gulp serve and when deployed to Heroku.

Is this normal? If not, any clues on how this should be resolved? #

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions