Welcome Guest, Not a member yet? Register   Sign In
Problem in load css
#1

Hi
When i load page,sometime website cannot load completely (css and other)
After reload page,it is OK
Why?
I attach picture here
Correct page is :
   

And when my page is not complete loading
   
Reply
#2

Go to browser console (F12 on firefox) then goto tab network and look what is returned near your css file. Which http code etc
Reply
#3

(10-13-2018, 09:21 AM)Piotr Wrote: Go to browser console (F12 on firefox) then goto tab network and look what is returned near your css file. Which http code etc
But this problem occur sometimes
Reply
#4

Can you see your code?
Reply
#5

@omid_student,

How are you calling your css / other files (relative or absolute)?
Reply
#6

(10-13-2018, 10:37 AM)MisterGeorgeX Wrote: Can you see your code?
Yes i see
I think Apache cannot complete request
Reply
#7

(10-14-2018, 12:20 PM)php_rocs Wrote: @omid_student,

How are you calling your css / other files (relative or absolute)?

Yes i am calling css correctly
When page dont loading complete,i reload page and page is loading completely
Reply
#8

Is this happening right after you make changes to the CSS files? If so, it might be due to browser caching and not really related to the site's code or apache issues. The fact that a second page load corrects the problem tends to indicate that it what's happening.
Reply
#9

One good thing to add to your head section is this:

Code:
<base href="<?php echo base_url();?>">
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#10

(10-15-2018, 08:20 AM)InsiteFX Wrote: One good thing to add to your head section is this:

Code:
<base href="<?php echo base_url();?>">

I used <base href="<?=base_url()?>">
Reply




Theme © iAndrew 2016 - Forum software by © MyBB