[Resolved] Unloading Offside.min.css on desktop

Home Forums Support [Resolved] Unloading Offside.min.css on desktop

Home Forums Support Unloading Offside.min.css on desktop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1653224
    Adrien

    Dear GP Team,

    Is there a way to unload Offside.min.css on desktop. Im not using the slideout panel on desktop.

    Cheers.

    #1653402
    David
    Staff
    Customer Support

    Hi there,

    it is possible dequeue scripts based on device – using the wp_is_mobile() function or an external library – but its not that reliable and if any server is using page caching you risk the desktop site being cached and being served to a mobile device … which would break the off canvas panel. For such a tiny amount of CSS I would not take that risk.

    #1653486
    Adrien

    Dear David. Thank you very much. It makes sense.

    #1653689
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.