Pavel Vanchugov Pavel Vanchugov - 3 months ago 30
CSS Question

Strange behavior of jquery-ui.css googleapis vs localhost

If i include jquery-ui.css from google server - it wors fine.

<link rel="stylesheet" href="" >

enter image description here

but if i download it to localstorage it behaviors differently
position of divs became relative.

<link rel="stylesheet" href="css/jquery-ui.css" >

enter image description here

And the same thing if i include it from other online service on localhost,

<link rel="stylesheet" href="" >,

but in online there will be no problems.

I assume this happens because of different loading speed, but would appreciate if someone explain this behaviour.


Probably you use something like file:// or C:/, that does not support cross origin requests.

You can install a webserver on your local PC or upload it somewhere else to support the cross origin requests