Questions tagged [css-js-aggregation]

The process to merge files together to improve a site performance with less server requests is called file aggregation.

Filter by
Sorted by
Tagged with
1
vote
0answers
68 views

How do I reliably expose aggregated CSS/JS to a third party app?

(TL;DR at the bottom) For the purposes of "theming" some other internal apps based on ASP etc., I need to make a D7 site's CSS/JS available at a permanent, reliable URL; one which will also self-...
0
votes
1answer
36 views

Serve aggregate CSS/JS files from S3 instead of local storage

I have enabled aggregate CSS/JS from the backend. It stores the aggregated files in the local system. How do I make them accessible through the S3 bucket? I have already installed the S3fs module. ...
0
votes
1answer
25 views

CSS and JS 404 On Admin Site Only - New Install [closed]

This is a new server build... me@server:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic Apache... me@...
0
votes
0answers
22 views

Group CSS and JS files for aggregation

The grouping for CSS-JS Aggregation is done on what basis ? For example, there are files A.js, B.js, C.js, D.js and E.js. If I want A.js, C.js in an aggregated file called X.js and B.js, D.js and E....
0
votes
1answer
52 views

Aggregating Javascript files breaks JS

On my d8 site I have AdvAgg CSS/JS Validator, AdvAgg Minify CSS, AdvAgg Minify JavaScript, AdvAgg Modifier and Advanced CSS/JS Aggregation enabled. I have standard settings used in the AdvAgg config. ...
0
votes
1answer
121 views

Aggregating JavaScript generates errors and breaks JS functionality

My website is working well but I was required to aggregate CSS/JS by enabling the system.performance.js.preprocess config key. Once the JS code is within one single file I got some errors that doesn't ...
0
votes
0answers
171 views

Twig and CSS for custom Block not working

I'm working on a custom module that has a block. This block has a form in configuration where user input the relative data, so far it works its saving the data and it display it but without a template ...
0
votes
0answers
31 views

After update to 7.65, I get MIME type ('text/html') error, strict MIME type checking is enabled

My web was running good with version 7.64. After I've updated to 7.65, css and javascript stop running due a MIME type error. I have disabled css/js aggregation (performance) in order to get it ...
0
votes
1answer
337 views

How to disable core JS aggregation and AdvAgg just for admin paths

I help look after a site which uses $settings['file_public_base_url'] to serve files from a different subdomain on the frontend, but on the backend (admin paths like node/add and node/edit) this ...
1
vote
1answer
24 views

Can I aggregate all stylesheets core, contrib and custom into one single stylesheet?

Is there any way to avoid Drupal from serving multiple stylesheets and instead bundle them together? I am going to look into https://www.drupal.org/project/webpack I want to avoid all the multiple @...
0
votes
0answers
23 views

Stop css file renaming when working locally

I've followed this guide to setup settings.local.php: https://www.drupal.org/node/2598914 And in my custom subtheme I have a stylesheet style.css which is working correctly. However when I look in ...
0
votes
0answers
37 views

Resolve Adv CSS/JS Agg - gzip issue

I have this issue on my drupal status report. How do I get rid of the warnings on Advagg?
0
votes
1answer
368 views

Upload custom font files

I've been given a directory full of font files (woff2, svg, ttf file types). Is there a way to get these fonts to load when a page is rendered in Drupal? Is there a specific directory I have to put ...
0
votes
0answers
19 views

Get path of advanced aggregator files

Is there an easy way to get the files? I would like to send the aggregated files over to a debugging service but drupal_get_js() isn't supported anymore. Is there other way to fetch them?
1
vote
0answers
244 views

Style Sheet sometimes does not load Microsoft Edge Browser [closed]

I am using the Advanced CSS/JS Aggregation module to load css once the page has loaded: <link type="text/css" rel="stylesheet" href="/sites/default/files/advagg_css/...
2
votes
2answers
333 views

What is the correct way to exclude certain CSS files for anonymous, but include for authenticated users? [duplicate]

We have a subtheme, mytheme that is based off of the classy base theme. We have set Aggregate CSS Files = true and when the pages load we end up with many aggregated CSS files. One issue is that we ...
0
votes
0answers
41 views

Hostname for CSS and JS Aggregation

We would like to place the aggregated CSS and JS onto a CDN as static resources. To accomplish this we need to load these resources with a special hostname. Let's say the base url of the website is ...
0
votes
1answer
308 views

JS/CSS aggregation not creating css folder

I am creating a Drupal 8 website with a custom theme. When css and js aggregation checkboxes are checked, js directory is created in sites/default/files/, however css folder does not get created. ...
0
votes
1answer
20 views

Aggregated javascript contains binary data, breaks site

Today I noticed a site's javascript was broken. One of the aggregated javascript files contained a bunch a binary data that (obviously) caused a syntax error; ‹EAk1…ÿŠæ”°!«Ð–¢Á¶]¤µ'³³6â&K2ºÑßÞ,...
0
votes
0answers
294 views

Advagg only aggregating and compressing some files

I'm using the Advagg module to reduce the number of http requests for CSS/JS files, but this only seems to work to a limited extent. In particular I'm concerned about why my theme stylesheets/js aren'...
0
votes
1answer
88 views

Problems with aggregated CSS

I activated aggregate CSS on my local development and on a remote testing environment without any problems. Now on staging the aggregation of CSS files causes trouble: on some pages the styling looks ...
0
votes
2answers
304 views

Pros and Cons of Combining CSS/JS files or loading contextually?

I am building an application in Drupal 7. There is one common CSS file A.css with 1000 lines of code. There are other 5 CSS files(B.css,C.css .... F.css) with 100 lines each. I want to load the other ...
3
votes
1answer
2k views

Force rebuild of aggregated css/js

I have manually removed all aggregated css and js files from sites/default/files. I would like Drupal to regenerate these, but it does not. Drupal is still looking for the old files, the ones I have ...
1
vote
0answers
60 views

#states doesn't work with Aggregate JavaScript

Recently I have encountered the strange behavior of setting form created with Form API in Drupal 8. I am using #states to hide one of the form elements ( radios ) when another element is empty. The ...
0
votes
1answer
225 views

Background Images Paths are Changed when CSS Aggregation is On

I have a Drupal 7 site with and Adaptives Themes subtheme enabled and set as default. I was recreating the Drupal 6 site in Drupal 7 on a subdomain and have recently transferred it over. My site has ...
1
vote
1answer
372 views

Aggregated CSS & JS files revert to old version

I'm troubleshooting an odd issue on my Drupal 7 site where it seems that old versions of our aggregated CSS & JS files are used some amount of time after a cache clear. How this is playing out is ...
0
votes
1answer
82 views

Upstream cache clear issues

I'm running into issues with caching on my Drupal 7 site, where it seems that users are receiving stale pages, despite not having "cache pages" or "cache blocks" settings enabled. There is no ...
0
votes
1answer
291 views

CSS is broken only certain admin pages

Drupal 8.2.7: Similar to this question: Why does my Site have a broken theme/style? In my case only certain admin pages css are broken and this seems to only affect admin, not unauthenticated users. ...
1
vote
1answer
57 views

Drupal 7 Breaks CSS Rule Ordering Standards when CSS Aggregation is Turned On [closed]

Drupal 7 has an interesting bug (some may consider this a feature) when rules are included before an external CSS document is included using @import. The CSS Aggregation engine will let you "bend the ...
4
votes
1answer
2k views

How to exclude specific css file from aggregation

Is it possible to exclude a specific css or js from drupal'l css and js aggregation ? For ex: Exclude custom-style.css from being aggragated ?
4
votes
1answer
124 views

How do I pre / post process aggregated css or js files?

I want to declare the character encoding of our aggregated css files - how would I be able to pre or post process the aggregated css files in Drupal 8? E.g. injecting @charset "UTF-8"; on top of all ...
2
votes
1answer
76 views

Why is my site's homepage loading in static mode?

I am using the AdvAgg module and all of its submodules, configured it using the configuration in AdvAgg README file. After doing so, the site's mobile view got problem. So I disabled all from AdvAgg ...
1
vote
2answers
1k views

Problem when agreggating CSS/JS files

I'm working on a small D8 site. When turning the option "Aggregate CSS files" (admin/config/development/performance) on localhost, everything works fine. However, doing so when on my test server ...
3
votes
1answer
45 views

Is there some way to compress CSS and Javascript only for certain users?

When I check the source of my web pages I am appalled at the amount of Javascript links in the page, but I have disabled the CSS and JS compression as I am often in development mode. Is there some ...
1
vote
2answers
700 views

What does the AdvAgg bundler do?

I tried to read the description but I didn't understand what this component does. The description says: If not checked, the bundler will not split up aggregates. I know that the purpose of ...
13
votes
3answers
5k views

How to disable aggregation from either drush or PHPmyadmin?

I've been searching for this and ALL I found deals with Drupal 7. Old drush command drush vset preprocess_js 0 doesn't work for Drupal 8 and the "variable" table in DB doesn't exist in 8... Yet, I ...
0
votes
1answer
117 views

After moving a new server, one of 2 Drupal sites, has no css loaded

I moved 2 sites from a shared server to a VPS. One works just fine with a custom theme, but the second doesn't have the Bartik CSS loaded. Both sites moved via the user root and as it seems almost ...
0
votes
2answers
1k views

How to fix google page speed insights issue?

I'm facing issues on my every drupal site when i test my website in Google page speed insight . I have configured Advagg module and followed but not succeed.Issues are below: Eliminate render-...
2
votes
1answer
367 views

CSS not updating with aggregation turned off

I'm running into an issue that I'm not sure how to diagnose. I'm working on minor CSS updates on a custom zen theme for a Drupal 7 site. I have the dev site set up on a laptop running ubuntu dev ...
-1
votes
1answer
74 views

Advagg css files are refering old site address [closed]

i have developed site in one machine (www.example.com). i moved all setup to another machine (www.example1.com).after moving some problem is there.some css files like "css__48K1J5D3tG5zmBfajwIKY-...
0
votes
1answer
81 views

check mark disappear after moving to new ip address

I moved my web server to another ip address. But "Advanced CSS/JS Aggregation" still refer the images from the old ip address. All the checkmark in my dashboard are disappeared, no matter for radio or ...
0
votes
0answers
193 views

Custom JS not loaded when JS aggregation is enabled

I have a couple of custom JS files in my theme that works as they should. Except that when I enable the JS aggregation (in Config -> Performance) to speed things up these JS functions stop working, ...
1
vote
0answers
69 views

Place CSS/JS aggregated files in a hierarchical directory structure

I use css and js aggregation for increase the speed of a drupal 7 website. Now, when I log in with user A, four news files (one css and one js) are added in the files website directory like that : ...
0
votes
2answers
83 views

CSS/JS aggregation, huge number of files

I use css and js aggregation for increase the speed of a drupal 7 website. Now, when I log in with an user A, four news files (one css and one js) are added in the files website directory. (for each ...
1
vote
1answer
658 views

My theme CSS uses relative paths, but Advagg or another module seems to be rewriting them to absolute paths. Core aggregation uses relative paths

Our CSS authored in the theme uses relative paths for all references to assets But the CSS aggregated/processed by Advagg has absolute paths where the authored CSS uses relative paths I can't see any ...
1
vote
0answers
121 views

AdvAgg Update & Settings Problem

I see this warning I go to update the database. Notice: Constant ADVAGG_MOD_CSS_DEFER already defined in include_once() (line 172 of /home/valerie/public_html/permanentmakeupcornwall.com/sites/...
0
votes
3answers
274 views

Tried to Inline CSS with AdvAgg but still get errors in Google

My Right-to-left site uses clean Bootstrap subtheme and has CDN, Internal caching (including Boost), Minification, Compression and aggregation, but still I get very low grades with all that has to do ...
1
vote
1answer
675 views

Advanced Aggregation: Should I disable core's aggregation?

I know that AdvAgg's bundler will, by default, disable core's grouping logic, but I'm unclear as to whether core's aggregation should be enabled or disabled (at admin/config/development/performance) ...
3
votes
1answer
2k views

Further optimizing CSS delivery with AdvAgg?

It seems to me that my main Drupal UI based task to leverage my site's optimization is further optimizing it's CSS delivery... Given the following facts, It's wired for me that Google's PSI advices ...
1
vote
1answer
350 views

CSS aggregates generating but not loading (core and AdvAgg), but JS aggregates load fine

I'm trying to set up aggregation and compression on my site, but am having problems. When I enable aggregation, either through core or through AdvAgg, it seems that aggregates are being generated for ...