# wp-optimize/3.2.21/js/queue-3-2-21.min.js

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 3.2.21. 1 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/3.2.21/code/js/queue-3-2-21.min.js
- Raw: https://pluginprobe.com/plugins/wp-optimize/3.2.21/raw/js/queue-3-2-21.min.js
- Modified: 2023-10-18T17:45:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/3.2.21/code/js/queue-3-2-21.min.js#L10-L20`.

```javascript
function Updraft_Queue(){var t=[],n=0,e=!1;this.get_length=function(){return t.length-n},this.is_empty=function(){return 0==t.length},this.enqueue=function(n){t.push(n)},this.is_locked=function(){return e},this.get_lock=function(){return!e&&(this.lock(),!0)},this.dequeue=function(){if(0!=t.length){var e=t[n];return 2*++n>=t.length&&(t=t.slice(n),n=0),e}},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.peek=function(){return t.length>0?t[n]:void 0},this.replace_front=function(e){return!(t.length<1)&&(t[n]=e,!0)}}
```
