How to get external css to load before external javascript?

1 replies
  • WEB DESIGN
  • |
Just checking page speed with one of G's tools, and a minor warning comes up.

The following external CSS files were included after an external JavaScript file in BADGE's Likes | StumbleUpon.com.... To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript.
The last part, "always include external CSS before external JavaScript" is what I don't understand. The css sheet is linked just before the /head tag, and the stumbleupon button is about 2 thirds of the way down the source code.

It seems like everything to do with the SU button is after the call for the css sheet. What am I missing?
#css #external #javascript #load
  • Profile picture of the author Brandon Tanner
    Try putting ALL of your JS code right before the closing </body> tag (including all calls to external JS files).
    Signature

    {{ DiscussionBoard.errors[8109707].message }}

Trending Topics