Download & Extend

Only load img_assist.js when necessary

Project:Image Assist
Version:6.x-1.0-beta1
Component:Code
Category:task
Priority:normal
Assigned:sun
Status:closed (duplicate)

Issue Summary

Move code which loads img_assist.js and other js from img_assist_menu() to img_assist_textarea() so it only will be loaded when neccesary.

Comments

#1

Version:6.x-3.x-dev» 4.7.x-1.x-dev

#2

Title:only load img_assist.js when neccesary» Only load img_assist.js when necessary
Version:4.7.x-1.x-dev» 5.x-1.4
Priority:minor» normal
Status:active» needs review

I second this, that script is quite big and completely useless for most visitors of a site.

AttachmentSize
img_assist-DRUPAL-5_0.patch 3.12 KB

#3

Looks very reasonable. I'd just like to get some confirmation that everything's working alright quickly before committing. I'll try to test it myself.

#4

Just subscribing

#5

Category:bug report» feature request

#6

+1. It's definitively a good feature to add!

#7

Version:5.x-1.4» 5.x-1.x-dev
Category:feature request» task
Assigned to:Anonymous» sun

#8

Version:5.x-1.x-dev» 6.x-1.0-beta1

Re-classifying for 6.x.

#9

Status:needs review» closed (duplicate)

This is also implemented by #246385: Handle teaser splitter, separate JS/CSS which I think is getting close to RTBC.

nobody click here