Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Minify Code

scottt6073095
Level 6
Level 6

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.

1 Accepted Solution
jantzen_belliston-Adobe
Correct answer by
Community Manager
Community Manager

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

View solution in original post

2 Replies
jantzen_belliston-Adobe
Correct answer by
Community Manager
Community Manager

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

View solution in original post

ParitMittal
Level 10
Level 10

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