• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 where i can found it !!!

jamalfree

Active member
#1
this is example from officiel forum xenforo

template PAGE_CONTAINER in <head> section
i found first line css this bellow


HTML:
<link rel="stylesheet" href="css.php?css=xenforo,form,public&amp;style=2&amp;dir=LTR&amp;d=1484606767" />
and this bellow not at all


HTML:
<link rel="stylesheet" href="css.php?css=node_category,node_forum,node_link,node_list,node_page,resource_list_mini,sidebar_share_page,thread_list_simple,xengallery_media_block,xengallery_tab_links,xfcom_page_wrapper&amp;style=2&amp;dir=LTR&amp;d=1484606767" />/[HTML]

where i can found it
 
Last edited:

jamalfree

Active member
#4
i have idea to fix page speed in PageSpeed Insights
Code:
Optimize CSS Delivery of the following:
https://xenforo.com/…form,public&style=1&dir=LTR&d=1484606767
https://xenforo.com/…age_wrapper&style=1&dir=LTR&d=1484606767
https://maxcdn.bootstrapcdn.com/…t-awesome/4.7.0/css/font-awesome.min.css
 

Arty

Well-known member
#5
Those are dynamically generated stylesheets, list of templates varies from page to page and includes only css templates needed for current page.

There is nothing to optimize. Google is wrong. If you merge those stylesheets into one stylesheet, like Google suggests, user will have to reload stylesheets on every page or you'll need to include additional css templates to prevent reloading. Both are worse than having 3 links.
 

Arty

Well-known member
#7
That would require changing xenforo template engine, so not possible.

And its a very bad idea. If you include style in head section, it will be loaded on every page load. External link means stylesheet can and will be cached by browser.By moving stylesheet into head section you not only won't be optimizing anything, you would be increasing page size and loading times.