Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
CamperBot
@camperbot
:cookie: 117 | @piteto |http://www.freecodecamp.com/piteto
Pagnito
@Pagnito
it only seems to load slow on mobile tho, i dunno after these changes maybe it wont tho
Jan Shah
@JanShah
@Pagnito your bottleneck is <script src="https://use.fontawesome.com/3e4f1eb361.js"></script> takes up to 5 seconds to load on my machine
Pagnito
@Pagnito
@JanShah hmm i see
i cant rememver what that cdn is for, one is for the icons obviouscly but the other one is something else
that comes with bootstrap i belive
nop nvm not bootstrap
piteto
@piteto
@Pagnito Those two font awesome scripts are identical, aside from the name.
Use a public CDN for the CSS file instead - it might help
Pagnito
@Pagnito
public cdn for css file?
piteto
@piteto
Or download that and run it locally like you're doing with bootstrap.css
It needs a bunch of font files to make that work though - can be a little painful
Pagnito
@Pagnito
wait so ur saying cuz i have a file for bootstrap and cdn for fontawesome is messing things up?
piteto
@piteto
There's always a risk of slow load times when getting your resources from an external server - like use.fontawesome.com.
To minimize the risk, always load your assets from the same server - in your case pavelyeganov.com
Pagnito
@Pagnito
tho apperently those two font file are identicial huh?
Jan Shah
@JanShah
@Pagnito there's something else, I'm sure your page is loading twice..
Pagnito
@Pagnito
if i download em, i can just import em into css right?
how so?
piteto
@piteto
those two files are identical aside from their names, yes
Jan Shah
@JanShah
or some script is repeating. open chrome, developer tools, performance tab, then refresh the page with screenshots ticked
@Pagnito
Pagnito
@Pagnito
@JanShah i removed the repeating font script, and i have no idea what im looking at after i did the performance test
loading time seems to have imporoved drstically, i just cleared all cache and history and data on my mobile browser and went back and it loaded instantly
tho my js file didnt get loaded
i redid the script tag, now gotta wait a lil to see if that will do it
Pagnito
@Pagnito
im gonna redo my whole portfolio soon anyway, so i guess it doesnt rly matter
Jan Shah
@JanShah
image.png
it loads something at 2 seconds and then something happens at 7 seconds, then it reloads
Pagnito
@Pagnito
it still doing it?
it doesnt do it on my browser
or wait hold on
which indicator tells u it reloads?
Jan Shah
@JanShah
no indicator, just screenshots that the profiler takes. last time I loaded, just now, it actually started rendering something then cleared again and reloaded at about 7 seconds
Pagnito
@Pagnito
thats weird, it doesnt do it on my browser
Jan Shah
@JanShah
it could be my hosting..
Pagnito
@Pagnito
can u try going on it on ur phone?
Engjell Bislimi
@Engjell00
any good videos that shows how to create website with html/css
Pagnito
@Pagnito
@Engjell00 traversy media on youtube
Jan Shah
@JanShah
doesn't look like it though, i've just tried a heavy page and it loads just fine
does the same on my phone, just faster @Pagnito
Pagnito
@Pagnito
oh yea it just did it on mine too
it loaded and about a second later, it reloaded
doesnt do it on my desktop tho
laptop i mean
Jan Shah
@JanShah
I'd try a couple of things. first, get your depencies from cdn sources, they seem to be taking a long time to load. second, get rid of the animation script, jquery one, see if it loads faster without that.
Pagnito
@Pagnito
doesnt it take longer to load from cdn then directly?
Jan Shah
@JanShah

https://stackoverflow.com/questions/14863022/settimeout-behaviour-with-blocking-code

'JavaScript is single-threaded. If some block of code uses execution thread, no other code can be executed. This means your setTimeout() call must wait until main execution (the one with busy-waiting while loop) finishes.' - Tomasz Nurkiewicz

@Pagnito cdn is fast fast fast