0
Welcome Guest! Login
0 items Join Now

Load CSS according to window size

  • Load CSS according to window size

    Posted 11 years 6 months ago
    • I am ending up with some very long css files with all the different media queries I am adding.

      I was wondering what the best way to load a specific css for the different windows sizes would be.

      i.e. a tablet, a phone, and a desktop size has it's own css file.

      Also, do you think this is a good idea? My goal here is to reduce the amount of css that a mobile or tablet version has to load to increase speed optimization. Please let me know if there is a better way to do this.

      Thanks!
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Load CSS according to window size

    Posted 11 years 6 months ago
    • Right now media queries are the best way to do this.
      There are a few js-solutions like
      adapt.960.gs

      You have to decide yourself if it makes sense for you ...

Time to create page: 0.070 seconds