Page 1 of 1

Faster page load

Posted: Wed May 06, 2020 1:20 pm
by piotrh
Dear Pablo,
one of things that makes site I made run slower is .js and .css recourses loading (jquery, google fonts).
How can I made them to load later?
bests
P

Re: Faster page load

Posted: Wed May 06, 2020 1:23 pm
by Pablo
You can make the page load faster by adding fewer scripts and fonts.

Re: Faster page load

Posted: Wed May 06, 2020 1:52 pm
by piotrh
Ok, but in this case I dont want to load fewer scripts/fonts.
I just don't want them to be loaded as first, most critcal elements.
P

Re: Faster page load

Posted: Wed May 06, 2020 1:59 pm
by crispy68
I would:

1. make sure you are minimizing your css and js codes.
2. set it so the .js code is at the end of your html code (not in the head). You can do the same for .css.

Re: Faster page load

Posted: Wed May 06, 2020 2:03 pm
by piotrh
Thank You crispy68.
Is there a way to make WWB – for example – move script loading and googlefont CSS to the end of html code?
P

Re: Faster page load

Posted: Wed May 06, 2020 2:17 pm
by Pablo
You can configure the HTML output in Tools -> Options -> HTML

Re: Faster page load

Posted: Wed May 06, 2020 3:17 pm
by piotrh
Ok, thank You.
P

Re: Faster page load

Posted: Wed May 06, 2020 3:49 pm
by piotrh
One more question. Is there a way to automaticly add &display=swap atribbute to google fonts?

Re: Faster page load

Posted: Wed May 06, 2020 3:57 pm
by Pablo
I'm sorry, there is no option for this.