Title: [Plugin: CSS And Script Files Aggregation] CSS Compression works great but Javascript does not work
Last modified: August 19, 2016

---

# [Plugin: CSS And Script Files Aggregation] CSS Compression works great but Javascript does not work

 *  [Florat](https://wordpress.org/support/users/florat/)
 * (@florat)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-css-and-script-files-aggregation-css-compression-works-great-but-javascript-does-not-work/)
 * The CSS works very fine. I tested all tools and yours is the only wich works 
   for me (some plugins mess the css, others make a 304 response for reloading the
   same page but a 200 response if i load an other page with the same css).
 * But unfortunately the Javascript aggregation with NextGEN Gallery does not work.
 * Thank you
 * [http://wordpress.org/extend/plugins/css-and-script-files-aggregation/](http://wordpress.org/extend/plugins/css-and-script-files-aggregation/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Florat](https://wordpress.org/support/users/florat/)
 * (@florat)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-css-and-script-files-aggregation-css-compression-works-great-but-javascript-does-not-work/#post-2006466)
 * I just figured the problem out.
 * Strangely the last character of each file is missed. When i change
 * fread($source_file,filesize($js_src)).”\n”;
 * to
 * fread($source_file,filesize($js_src)).”;\n”;
 * everything works nice. Would be nice if you can fix this issue in future updates.
 * Thank you very much for this nice plugin!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: CSS And Script Files Aggregation] CSS Compression works great
but Javascript does not work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/css-and-script-files-aggregation.
   svg)
 * [CSS And Script Files Aggregation](https://wordpress.org/plugins/css-and-script-files-aggregation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/css-and-script-files-aggregation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/css-and-script-files-aggregation/)
 * [Active Topics](https://wordpress.org/support/plugin/css-and-script-files-aggregation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/css-and-script-files-aggregation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/css-and-script-files-aggregation/reviews/)

## Tags

 * [failure](https://wordpress.org/support/topic-tag/failure/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 1 participant
 * Last reply from: [Florat](https://wordpress.org/support/users/florat/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-css-and-script-files-aggregation-css-compression-works-great-but-javascript-does-not-work/#post-2006466)
 * Status: not resolved