Minify Code | Community
Skip to main content
Level 4
June 26, 2017
Solved

Minify Code

  • June 26, 2017
  • 2 replies
  • 2626 views

Does anyone know if code can be minified in DTM. I have a bunch of plugins that load on page load and wanted to see about minifying them for smaller page load footprint.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

Scott,

Most of the DTM library is minified. I believe the only parts that aren't are any custom code you've entered. I believe this is to avoid any issues caused by minification. You'd likely need to minify it before it was placed in DTM if you wanted the custom code to be minified.

Thanks,
Jantzen

2 replies

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
June 26, 2017

Scott,

Most of the DTM library is minified. I believe the only parts that aren't are any custom code you've entered. I believe this is to avoid any issues caused by minification. You'd likely need to minify it before it was placed in DTM if you wanted the custom code to be minified.

Thanks,
Jantzen

ParitMittal
Level 10
June 27, 2017

Hi Scott,

Adding onto the Jantzen's reply , you can also use the code Minification tools :5 Excellent JavaScript Minification Tools to Improve your Code’s Performance  to minify the custom code before it is placed in DTM.

Regards

Parit Mittal