Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Combine all .js files in to one single file

Featured Replies

How can I do this? Simply take the code from each file and manually place it into one file? Or this there another more technical way?

  • Author

Pretty much do it manually, unless you have gallons of JS (in which you need to reevaluate the js usage).

 

Thanks, nah not loads, just reducing the amount of 'on-page' code a bit.

 

 

Copy and pasting should work fine....

...or alternatively have a look at this http://gonzalo123.wordpress.com/2011/02/21/speed-up-page-page-load-combining-javascript-files-with-php/ i haven't tried it myself so i can't vouch for it!

 

Thanks, will give that a peak in a bit.

 

 

Depends. There's this for WordPress.

 

Ta. Wordpress has been dumped for this particular site though.

  • Author

Minify is really good for this - does CSS as well.

Ok, so have downloaded minify - now I'm scared!! Before I downloaded it I had decided to chuck all the JS files in to one file, rename it and upload it. This works just fine but would the minify option be a better/safer/faster loading way to do things?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.