M
M
Mikha Pankratov2016-07-19 08:59:50
JavaScript
Mikha Pankratov, 2016-07-19 08:59:50

How to speed up bootstrap modal window appearance?

Good afternoon,

for some reason my modal window is loaded with a delay, I want to speed it up - who came across it?

Here is my code >>>

$this->registerJS('
$(\'#updateButton-A, #updateButton-B, #updateButton-M, #updateButton-Z\').click(function(){
    $(\'div#updateContent\').empty();
        $(\'#modal\').modal(\'show\')
            .find(\'div#updateContent\')
            .load($(this).attr(\'value\'));
        });
');


did no one come across? with the fact that the popup opens with a delay with a slight hang

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question